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:
Lionel Ulmer 2002-05-18 14:53:19 +00:00
parent 53f993be44
commit 3b4c6ceb0f
4 changed files with 85 additions and 31 deletions

View file

@ -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;