PebbleOS
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
audio_endpoint.h File Reference
#include <inttypes.h>
#include <stdlib.h>

Macros

#define AUDIO_ENDPOINT_SESSION_INVALID_ID   (0)
 Invalid session identifier.
 

Typedefs

typedef uint16_t AudioEndpointSessionId
 Identifies a transfer session.
 
typedef void(* AudioEndpointStopTransferCallback) (AudioEndpointSessionId session_id)
 Called when the phone asks to stop a transfer.
 

Functions

AudioEndpointSessionId audio_endpoint_setup_transfer (AudioEndpointStopTransferCallback stop_transfer)
 Create a session for transferring audio from the watch to the phone.
 
void audio_endpoint_add_frame (AudioEndpointSessionId session_id, uint8_t *frame, uint8_t frame_size)
 Send a frame of encoded audio.
 
void audio_endpoint_stop_transfer (AudioEndpointSessionId session_id)
 End a transfer and send a stop transfer message to the phone.
 
void audio_endpoint_cancel_transfer (AudioEndpointSessionId session_id)
 End a transfer without notifying the phone.