void seek(int pos) { // we stop and restart it because otherwise the buffer finishes // playing first and the seek isn't quite accurate alogg_stop_ogg(tune); play_from(pos); }
void MYSTATICOGG::seek(int pos) { AGS::Engine::MutexLock _lock; if (psp_audio_multithreaded) _lock.Acquire(_mutex); // we stop and restart it because otherwise the buffer finishes // playing first and the seek isn't quite accurate alogg_stop_ogg(tune); play_from(pos); }
int MYSTATICOGG::play() { _playing = true; return play_from(0); }
int play() { return play_from(0); }