[Plib-cvs] CVS: plib/src/sl slDSP.cxx,1.10,1.11
Brought to you by:
sjbaker
From: Norman V. <nh...@us...> - 2002-02-06 07:00:44
|
Update of /cvsroot/plib/plib/src/sl In directory usw-pr-cvs1:/tmp/cvs-serv24535 Modified Files: slDSP.cxx Log Message: irix tweaks from Erik Hofman Index: slDSP.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/sl/slDSP.cxx,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- slDSP.cxx 2001/11/07 23:51:09 1.10 +++ slDSP.cxx 2002/02/06 07:00:41 1.11 @@ -629,22 +629,22 @@ void slDSP::open ( char *device, int _rate, int _stereo, int _bps ) { -#if 0 if ( _bps != 8 ) { perror ( "slDSP: supports only 8bit audio for sgi" ) ; error = SL_TRUE; return; } -#endif - init_bytes = 1024 * 16; + init_bytes = 1024 * 32; + if (_bps == 8) init_bytes /= 2; + if (_stereo) init_bytes /= 2; + config = alNewConfig(); - alSetChannels(config, _stereo ? AL_STEREO : AL_MONO); alSetWidth(config, _bps == 8 ? AL_SAMPLE_8 : AL_SAMPLE_16); alSetQueueSize(config, init_bytes); - init_bytes = alGetQueueSize(config); + // init_bytes = alGetQueueSize(config); port = alOpenPort(device, "w", config); |