36#ifndef GNUNET_SPEAKER_SERVICE_H
37#define GNUNET_SPEAKER_SERVICE_H
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
static struct GNUNET_SPEAKER_Handle * speaker
Handle to the speaker.
static char * data
The data to insert into the dht.
static size_t data_size
Number of bytes in data.
struct GNUNET_SPEAKER_Handle * GNUNET_SPEAKER_create_from_hardware(const struct GNUNET_CONFIGURATION_Handle *cfg)
Create a speaker that corresponds to the speaker hardware of our system.
void(* GNUNET_SPEAKER_DestroyCallback)(void *cls)
Function to destroy a speaker.
int(* GNUNET_SPEAKER_EnableCallback)(void *cls)
Function that enables a speaker.
void(* GNUNET_SPEAKER_PlayCallback)(void *cls, size_t data_size, const void *data)
Function to cause a speaker to play audio data.
void GNUNET_SPEAKER_destroy(struct GNUNET_SPEAKER_Handle *speaker)
Destroy a speaker.
void(* GNUNET_SPEAKER_DisableCallback)(void *cls)
Function that disables a speaker.
A speaker is a device that can play or record audio data.
GNUNET_SPEAKER_DestroyCallback destroy_speaker
Destroy the speaker.
void * cls
Closure for the callbacks.
GNUNET_SPEAKER_PlayCallback play
Play audio.
GNUNET_SPEAKER_EnableCallback enable_speaker
Turn on the speaker.
GNUNET_SPEAKER_DisableCallback disable_speaker
Turn the speaker off.