use RageSoundReader_Resample

(almost not tied to 44100 ...)
This commit is contained in:
Glenn Maynard
2003-04-23 19:11:59 +00:00
parent 8d66bb367c
commit 111eeef550
5 changed files with 31 additions and 29 deletions
+1 -2
View File
@@ -4,7 +4,6 @@
const int channels = 2;
const int samplesize = 2 * channels; /* 16-bit */
const int samplerate = 44100;
/* If a sound is smaller than this, we'll load it entirely into memory. */
const int max_prebuf_size = 1024*256;
@@ -17,7 +16,7 @@ int SoundReader_Preload::total_samples() const
bool SoundReader_Preload::Open(SoundReader *source)
{
ASSERT(source);
// samplerate = source->GetSampleRate();
samplerate = source->GetSampleRate();
/* Check the length, and see if we think it'll fit in the buffer. */
int len = source->GetLength_Fast();