コード例 #1
0
ファイル: acsound.cpp プロジェクト: smarinel/ags-web
 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);
 }
コード例 #2
0
ファイル: clip_mystaticogg.cpp プロジェクト: AlanDrake/ags
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);
}
コード例 #3
0
ファイル: clip_mystaticogg.cpp プロジェクト: AlanDrake/ags
int MYSTATICOGG::play() {
    _playing = true;
    return play_from(0);
}
コード例 #4
0
ファイル: acsound.cpp プロジェクト: smarinel/ags-web
 int play() {
   return play_from(0);
 }