From a87b4d73645bc97fdddce3dd56f7e85dd144693e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 8 Jan 2004 07:33:29 +0000 Subject: [PATCH] implement RageSound_DSound_Software::GetSampleRate --- stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp | 5 +++++ stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.h | 1 + 2 files changed, 6 insertions(+) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp index 7a2aaa0170..932d1b0d69 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.cpp @@ -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. * diff --git a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.h b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.h index f71a21be98..ef81c9ce4a 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.h +++ b/stepmania/src/arch/Sound/RageSoundDriver_DSound_Software.h @@ -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();