From 9d7ce29cdde72b335e840767a01036e6ff4b8192 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 23 Oct 2005 22:00:23 +0000 Subject: [PATCH] report the fake sample rate, so changes to it work --- stepmania/src/arch/Sound/RageSoundDriver_Null.cpp | 5 +++++ stepmania/src/arch/Sound/RageSoundDriver_Null.h | 1 + 2 files changed, 6 insertions(+) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp index cfe0ac0704..41c8670a0c 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp @@ -36,6 +36,11 @@ float RageSound_Null::GetPlayLatency() const return 0; /* silence is fast! */ } +int RageSound_Null::GetSampleRate( int iRate ) const +{ + return samplerate; +} + /* * (c) 2002-2004 Glenn Maynard, Aaron VonderHaar * All rights reserved. diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.h b/stepmania/src/arch/Sound/RageSoundDriver_Null.h index c249bf1867..fce303cc29 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.h +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.h @@ -9,6 +9,7 @@ public: RageSound_Null(); int64_t GetPosition( const RageSoundBase *snd ) const; float GetPlayLatency() const; + int GetSampleRate( int iRate ) const; void Update( float fDeltaTime ); private: