implement RageSound_DSound_Software::GetSampleRate

This commit is contained in:
Glenn Maynard
2004-01-08 07:33:29 +00:00
parent f3b7efc1ff
commit a87b4d7364
2 changed files with 6 additions and 0 deletions
@@ -202,6 +202,11 @@ float RageSound_DSound_Software::GetPlayLatency() const
return (1.0f / samplerate) * buffersize_frames;
}
int RageSound_DSound_Software::GetSampleRate( int rate ) const
{
return samplerate;
}
/*
* Copyright (c) 2002 by the person(s) listed below. All rights reserved.
*
@@ -40,6 +40,7 @@ class RageSound_DSound_Software: public RageSoundDriver
void StopMixing(RageSound *snd); /* used by RageSound */
int GetPosition(const RageSound *snd) const;
float GetPlayLatency() const;
int GetSampleRate( int rate ) const;
public:
RageSound_DSound_Software();