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:
parent
115c39154d
commit
5e7c3ce5cd
|
@ -87,7 +87,7 @@ bool SoundSDL::init(long sampleRate)
|
|||
audio.freq = sampleRate;
|
||||
audio.format = AUDIO_S16SYS;
|
||||
audio.channels = 2;
|
||||
audio.samples = sampleRate / 60;
|
||||
audio.samples = 1024;
|
||||
audio.callback = soundCallback;
|
||||
audio.userdata = this;
|
||||
|
||||
|
|
Loading…
Reference in New Issue