espeakup/espeak_sound.c
Christopher Brannon a5d1a48f42 Obtain sample rate from the value of espeak_Initialize.
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.
2009-06-22 22:32:27 -05:00

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;
}