implement RageSound_DSound_Software::GetSampleRate
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user