PebbleOS v4.47.0
Loading...
Searching...
No Matches
Simulator

Simulated microphone, recording the audio written to it. More...

Macros

#define SIM_MIC   (&pbl_audio_sim_mic)
 The simulated microphone, as a capture device.
 

Functions

void pbl_audio_sim_mic_write (const struct pbl_audio *mic, const void *pcm, size_t count)
 Queue audio for the microphone to record.
 

Detailed Description

Simulated microphone, recording the audio written to it.

Records 16 kHz mono audio, paced by a timer: what pbl_audio_sim_mic_write() queues, and silence when nothing is queued.

Macro Definition Documentation

◆ SIM_MIC

#define SIM_MIC   (&pbl_audio_sim_mic)

The simulated microphone, as a capture device.

Function Documentation

◆ pbl_audio_sim_mic_write()

void pbl_audio_sim_mic_write ( const struct pbl_audio *  mic,
const void *  pcm,
size_t  count 
)

Queue audio for the microphone to record.

Drops the oldest queued audio once the queue is full. Ignored while it is not recording.

Parameters
micDevice.
pcm16 kHz mono signed 16-bit PCM, in CPU byte order. Need not be aligned.
countNumber of samples.