36#ifndef GNUNET_MICROPHONE_SERVICE_H
37#define GNUNET_MICROPHONE_SERVICE_H
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
static struct GNUNET_MICROPHONE_Handle * microphone
Handle to the microphone.
static char * data
The data to insert into the dht.
static size_t data_size
Number of bytes in data.
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.
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.
void(* GNUNET_MICROPHONE_RecordedDataCallback)(void *cls, size_t data_size, const void *data)
Process recorded audio data.
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.