espeakup/espeak_sound.c
Christopher Brannon 91b8960b6a Protect the stopped variable with a mutex.
An oversight.  Should have done this in the initial commit.
volatile does not imply atomic.
2009-06-21 14:36:13 -05:00

22 lines
362 B
C

#include "espeakup.h"
int init_audio(void)
{
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;
}