[Plib-devel] Problems with sound under Windows XP.
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2005-01-31 07:16:50
|
A friend of mine is helping me get a PLIB application running under Windows XP. Everything works except for the audio. Here is what he says: David Lenihan wrote: > I hear sound for a fraction of a second at startup and then it abruptly turns > off. This is what the console says: > > Data files will be fetched from: '.' > Playing 'audio/song06.mod' > WARNING: SlDSP: Cannot perform this operation while media data is still > playing. > Reset the device, or wait until the data is finished playing. (33) Can anyone shed any light on this? The text of that message isn't inside PLIB but the 'WARNING: SlDSP' part must come from PLIB...so I think it must be coming from: plib/src/sl/slDSP.cxx: Line 170: static void wperror(MMRESULT num) { char buffer[0xff]; // yes, this is hardcoded :-) waveOutGetErrorText( num, buffer, sizeof(buffer)-1); ulSetError ( UL_WARNING, "SlDSP: %s (%d)", buffer, num ); } ....that's called in three places - all of them in slDSP::open which is a Windows-specific chunk of code containing a bunch of 'waveOut...()' stuff that I don't understand! ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |