36 #ifndef GNUNET_MICROPHONE_SERVICE_H
37 #define GNUNET_MICROPHONE_SERVICE_H
static const struct GNUNET_CONFIGURATION_Handle * cfg
Configuration we are using.
static size_t data_size
Number of bytes in data.
static struct GNUNET_MICROPHONE_Handle * microphone
Handle to the microphone.
uint32_t data
The data value.
void(* GNUNET_MICROPHONE_DestroyCallback)(void *cls)
Function to destroy a microphone.
int(* GNUNET_MICROPHONE_EnableCallback)(void *cls, GNUNET_MICROPHONE_RecordedDataCallback rdc, void *rdc_cls)
Enable a microphone.
void GNUNET_MICROPHONE_destroy(struct GNUNET_MICROPHONE_Handle *microphone)
Destroy a microphone.
void(* GNUNET_MICROPHONE_DisableCallback)(void *cls)
Function that disables a microphone.
void(* GNUNET_MICROPHONE_RecordedDataCallback)(void *cls, size_t data_size, const void *data)
Process recorded audio data.
struct GNUNET_MICROPHONE_Handle * GNUNET_MICROPHONE_create_from_hardware(const struct GNUNET_CONFIGURATION_Handle *cfg)
Create a microphone that corresponds to the microphone hardware of our system.
A microphone is a device that can capture or otherwise produce audio data.
void * cls
Closure for the callbacks.
GNUNET_MICROPHONE_DisableCallback disable_microphone
Turn the microphone off.
GNUNET_MICROPHONE_DestroyCallback destroy_microphone
Destroy the microphone.
GNUNET_MICROPHONE_EnableCallback enable_microphone
Turn on the microphone.