mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
espeak uses a sample rate of 22050 HZ, but let's not rely on that knowledge. espeak_Initialize returns the sample rate on success, so rely on that value when selecting a rate.
22 lines
375 B
C
22 lines
375 B
C
#include "espeakup.h"
|
|
int init_audio(unsigned int rate)
|
|
{
|
|
audio_mode = AUDIO_OUTPUT_PLAYBACK;
|
|
audio_callback = NULL;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* lock_audio_mutex and unlock_audio_mutex are no-ops if we use native
|
|
* sound support. The stopped variable is never read; no need to protect it.
|
|
*/
|
|
|
|
void lock_audio_mutex(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void unlock_audio_mutex(void)
|
|
{
|
|
return;
|
|
}
|