The number of samples in the system sound driver buffer has to be a

power of 2 on some machines.
This commit is contained in:
bgk 2009-01-12 21:12:46 +00:00
parent 115c39154d
commit 5e7c3ce5cd
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ bool SoundSDL::init(long sampleRate)
audio.freq = sampleRate; audio.freq = sampleRate;
audio.format = AUDIO_S16SYS; audio.format = AUDIO_S16SYS;
audio.channels = 2; audio.channels = 2;
audio.samples = sampleRate / 60; audio.samples = 1024;
audio.callback = soundCallback; audio.callback = soundCallback;
audio.userdata = this; audio.userdata = this;