bool GuiSound::IsPlaying() { // if(ASND_StatusVoice(voice) == SND_WORKING || ASND_StatusVoice(voice) == SND_WAITING) // return true; // else // return false; //return false; if(xenon_sound_get_free()) return true; else return false; }
/* // return: how many bytes can be played without blocking */ static int get_space(void) { return xenon_sound_get_free(); }
static float get_delay(void) { return ((float) (ao_data.buffersize - xenon_sound_get_free())) / ((float) ao_data.bps); }