add GetSampleRate
reset sample pos after stop
This commit is contained in:
@@ -337,6 +337,7 @@ void Alsa9Buf::Stop()
|
||||
{
|
||||
dsnd_pcm_drop( pcm );
|
||||
dsnd_pcm_prepare( pcm );
|
||||
last_cursor_pos = 0;
|
||||
}
|
||||
|
||||
void Alsa9Buf::SetSampleRate(int hz)
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user