From d363ddd885f6c3b9c01da46e64d6fbbde67936b6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 20 Aug 2003 18:15:49 +0000 Subject: [PATCH] cleanup, comment --- stepmania/src/RageSound.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index be81cb5f93..8bd63e19b9 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -37,9 +37,10 @@ #include "RageUtil.h" #include "RageLog.h" #include "RageException.h" - #include "PrefsManager.h" +#include + #if defined(OGG_ONLY) #include "RageSoundReader_Vorbisfile.h" #define RageSoundReader_LowLevel RageSoundReader_Vorbisfile @@ -221,6 +222,8 @@ void RageSound::SetLengthSeconds(float secs) m_LengthSamples = int(secs*samplerate()); } +/* Read data at the rate we're playing it. We only do this to smooth out the rate + * we read data; the sound thread will always read more if it's needed. */ void RageSound::Update(float delta) { if(playing && delta) @@ -233,7 +236,6 @@ int RageSound::Bytes_Available() const return databuf.size(); } -#include void RageSound::RateChange(char *buf, int &cnt, int speed_input_samples, int speed_output_samples, int channels)