PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

waveOutOpen unknown error

When I make a call to waveOutOpen, it returns to me an unknown error (i.e., one that does not correspond to the defined errors) IF the system sounds option is enabled in Settings.

I've done some research and discovered that this is indeed a known issue. However, it is a rather frustrating one.

Does anyone know of a way to resolve this? Obviously I'd like to know if there is a way to avoid it altogether, but my other thought is to disable that system setting at the start of my game and reset it to it's initial state on close.

I couldn't find a programmatic way to do this, but I could have just missed it.

Can anyone shed any light on this in any way? It seems lame to simply display a message when this error occurs saying that you as the user may have to disable the option before running the game, and certainly most if not all games I've seen do not exhibit this behavior, but it IS just a standard Win32 call, and my syntax appears correct (certainly the sound library works if the option is not checked), but it is annoying me.

Thanks all!
I've never seen nor heard of this problem. What device are you using?

When I was toying around with writing a software mixer a year or so ago, I did run into a problem where sometimes my sound wouldn't play properly if system sounds were enabled. As far as I know, the API never returned an error code though. It was because what I was doing to trigger audio playing in my app was also generating a system sound (duh) and the two conflicted with each other.
I'm using an E-125, but I've also seen it happen on a 3650 and an e740, so it's not a device-specific issue (which also is what my research seems to indicate).

I should go get the exact error code returned, I don't have it written down... Lemme post again in a few hours when I have some time, maybe it will mean something to someone then...
Frank

Which system setting are you referring to? Perhaps it is determined by a reg key?

Could you provide a link to where you researched this "known problem"?

Thanks!