![]() I found that the vast majority of DirectX examples are written in unmanaged C++ (or even in C, working at the Win32 API level!). ![]() It seemed that would be easy, so I searched for some example code and documentation about working with WAVE files and playing them with the Managed DirectX ("MDX") DirectSound classes. As a part of that work, I needed to be able to read in lengthy sound files, modify them, write them out, and listen to them in the. Here's my motivation: I'm working in C# on some new tools for transforming signals, especially sounds. ![]() (I'll explain that somewhat-awkward clause later!) In particular, I've found out how to avoid an annoying bug that infests DirectSound's interaction with some sound-card drivers, that appears when streaming long sounds through a realistically-sized buffer, allocated with default properties. In this second revision of my article, I pass on some of the things I've learned about playing sounds in C# code, both from my own experiments and helpful input from the good folks who read the first one and commented. But because Managed DirectX is pretty new, it's not easy to find good examples of using it from C# and. It takes me about half as long to get the compiler to understand what I mean in C# as in C++.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |