PebbleOS
Loading...
Searching...
No Matches
Data Fields
MusicServerImplementation Struct Reference

Operations implemented by a music backend. More...

#include <music_internal.h>

Data Fields

const char * debug_name
 Name used in logs and tests.
 
bool(* is_command_supported )(MusicCommand command)
 Check whether a command is supported.
 
void(* command_send )(MusicCommand command)
 Send a command to the player.
 
bool(* needs_user_to_start_playback_on_phone )(void)
 Check whether playback must be started from the phone.
 
MusicServerCapability(* get_capability_bitset )(void)
 Get the supported MusicServerCapability bits.
 
void(* request_reduced_latency )(bool reduced_latency)
 Enable or disable reduced connection latency.
 
void(* request_low_latency_for_period )(uint32_t period_ms)
 Request the lowest connection latency for period_ms milliseconds.
 

Detailed Description

Operations implemented by a music backend.

Field Documentation

◆ command_send

void(* MusicServerImplementation::command_send) (MusicCommand command)

Send a command to the player.

◆ debug_name

const char* MusicServerImplementation::debug_name

Name used in logs and tests.

◆ get_capability_bitset

MusicServerCapability(* MusicServerImplementation::get_capability_bitset) (void)

Get the supported MusicServerCapability bits.

◆ is_command_supported

bool(* MusicServerImplementation::is_command_supported) (MusicCommand command)

Check whether a command is supported.

◆ needs_user_to_start_playback_on_phone

bool(* MusicServerImplementation::needs_user_to_start_playback_on_phone) (void)

Check whether playback must be started from the phone.

◆ request_low_latency_for_period

void(* MusicServerImplementation::request_low_latency_for_period) (uint32_t period_ms)

Request the lowest connection latency for period_ms milliseconds.

◆ request_reduced_latency

void(* MusicServerImplementation::request_reduced_latency) (bool reduced_latency)

Enable or disable reduced connection latency.


The documentation for this struct was generated from the following file: