|
PebbleOS v4.47.0
|
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. | |
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.
| #define SIM_MIC (&pbl_audio_sim_mic) |
The simulated microphone, as a capture device.
| 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.
| mic | Device. |
| pcm | 16 kHz mono signed 16-bit PCM, in CPU byte order. Need not be aligned. |
| count | Number of samples. |