Craig Andera's blog.
The latest in my Managed DirectSound series. This time we talk about how to control frequency, pan, and volume.
"The latest" points to localhost.I have one question and it's a good opportunity to ask it. When there is no sample.wav in program directory, we get FileNotFoundException in JIT debugging dialog (BTW, it would be nice to see file name not found).OK, we can add catch section to program. But what if DirectX 9 not installed on user machine? How can we catch Microsoft.DirectX.Direct3D.dll FileNotFoundException?
D'oh! I always preview the content on my local machine before I upload it to make sure I'm not going to screw anything up, and clearly I pasted the link from the wrong window. Thanks for pointing that out - it's all fixed now. On your second point, it's a good question, and far more general than just DirectX. Basically, you need to understand when and how assemblies get loaded, and what to do if they fail. I'll do a little research to make sure what's in my head is right and blog something on it in the next few days.
OK, I wrote it up. Check it out here: http://pluralsight.com/wiki/default.aspx/Craig/DealingWithAssemblyLoadFailure.html
Thanks. Works great.