add GetSampleRate

reset sample pos after stop
This commit is contained in:
Glenn Maynard
2004-01-12 03:53:16 +00:00
parent d7839b1c67
commit d5eded488a
2 changed files with 2 additions and 0 deletions
@@ -337,6 +337,7 @@ void Alsa9Buf::Stop()
{
dsnd_pcm_drop( pcm );
dsnd_pcm_prepare( pcm );
last_cursor_pos = 0;
}
void Alsa9Buf::SetSampleRate(int hz)
+1
View File
@@ -43,6 +43,7 @@ public:
void Stop();
void SetVolume(float vol);
void SetSampleRate(int hz);
int GetSampleRate() const { return samplerate; }
int GetPosition() const;
int GetPlayPos() const { return last_cursor_pos; }