2.5 Audio:

- Using libsamplerate again, doesn't seem to be the bug source.
- Changed sequencer audio to work with 2 channels and 44.1 kHz fixed.
This commit is contained in:
Joerg Mueller 2010-02-08 15:37:38 +00:00
parent 54d7a7c26f
commit a53027eb05
2 changed files with 10 additions and 12 deletions

@ -671,18 +671,16 @@ float* AUD_readSoundBuffer(const char* filename, float low, float high,
AUD_Sound* AUD_createSequencer(void* data, AUD_volumeFunction volume) AUD_Sound* AUD_createSequencer(void* data, AUD_volumeFunction volume)
{ {
if(AUD_device) /* AUD_XXX should be this: but AUD_createSequencer is called before the device
{ * is initialized.
return new AUD_SequencerFactory(AUD_device->getSpecs().specs, data, volume); return new AUD_SequencerFactory(AUD_device->getSpecs().specs, data, volume);
} */
else
{
AUD_Specs specs; AUD_Specs specs;
specs.channels = AUD_CHANNELS_STEREO; specs.channels = AUD_CHANNELS_STEREO;
specs.rate = AUD_RATE_44100; specs.rate = AUD_RATE_44100;
return new AUD_SequencerFactory(specs, data, volume); return new AUD_SequencerFactory(specs, data, volume);
} }
}
void AUD_destroySequencer(AUD_Sound* sequencer) void AUD_destroySequencer(AUD_Sound* sequencer)
{ {

@ -26,7 +26,7 @@
#ifndef AUD_MIXER #ifndef AUD_MIXER
#define AUD_MIXER #define AUD_MIXER
#define AUD_MIXER_RESAMPLER AUD_LinearResampleFactory #define AUD_MIXER_RESAMPLER AUD_SRCResampleFactory
#include "AUD_ConverterFunctions.h" #include "AUD_ConverterFunctions.h"
class AUD_ConverterFactory; class AUD_ConverterFactory;