running BASS alongside other DirectX apps

Started by Ben,

Ben

I've recently written a very simple synth that uses BASS for audio playback. It works fine on my system (XP Home, DirectX 8.1) but one of the people who's tested it says that on his system, not only is the synth unstable, but after he's used it, other applications that use Direct X become unstable, returning errors in dsound.dll or access violation errors. He's on 98se, using DirectX 8.

Anyone else encountered anything like this? Since none of my code should affect dsound directly, I'm guessing it is an issue with BASS. Any clues appreciated.

Ian @ un4seen

Make sure you're calling BASS_Free before your app exits, to gracefully cleanup BASS/DirectSound.

When you say your app runs "unstable", do you mean it crashes? If so, it could be that the subsequent problems are due to the DirectSound objects not being neatly released (because BASS_Free wasn't called). Also, if your app is crashing, is the crash location in BASS.DLL?

Ben

When I checked, I found there was one "way out" of the program that wasn't calling BASS_Free, so that may be it. I'll send the user an updated version, and if that doesn't fix it, I'll try and get a more detailed bug report, as it sounds as if he was getting different error reports on different occasions.

Thanks for your help, Ian.