use RageSoundReader_Resample
(almost not tied to 44100 ...)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user