Added infrastructure to support more than 8 bit signed / unsigned RAW
mixers. Porters, beware, the default configuration is now 16 bit stereo instead of 16 mono as before (I changed X11 and SDL but no others). I did not add support for any other format yet, I will let Endy do it when he needs it :-) svn-id: r4348
This commit is contained in:
parent
53f993be44
commit
3b4c6ceb0f
4 changed files with 85 additions and 31 deletions
2
sdl.cpp
2
sdl.cpp
|
@ -829,7 +829,7 @@ bool OSystem_SDL::set_sound_proc(void *param, SoundProc *proc, byte format) {
|
|||
|
||||
desired.freq = SAMPLES_PER_SEC;
|
||||
desired.format = AUDIO_S16SYS;
|
||||
desired.channels = 1;
|
||||
desired.channels = 2;
|
||||
desired.samples = 2048;
|
||||
desired.callback = proc;
|
||||
desired.userdata = param;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue