   DirectMusic and C# .NET?
  Just wanted to ask if it's possible to use the DirectMusic API while programming in C# .NET.The samples that come with the DX SDK only have VC++ code for DirectMusic examples.If someone could throw some light on the subject, I'd really appreciate it!   
  I don't think anyone uses directmusic.just make a mp3 and play that?   ;  I imagine it is possible.  Just install the Managed DirectX libraries (which come with the SDK) and look to see if the DirectMusic functionality is available in C#.  You could probably find out from looking at the documentation that comes with the DirectX SDK or using the object browser in Visual Studio.I haven't used managed DirectX, but I believe that the C# interface is similiar to the C++ interface.   ;  I disagree.  I use DirectMusic, and it can be very powerful if you have decent samples/DLSs and enough practice composing with it.In response to the OP, I have no idea, but if you do just want to play MP3s or whatever, FMOD is a lot easier.  I expect it's a little painful, since you have to do a bunch of COM initialization, which I expect is similar, so look into that in C#.tj963   ;  Hey Tofu,I came across references to DirectMusic (DM) on a few web pages and wanted to check it out.  I think DS will do for now.  Just wanted to know if one could program in Visual C# using DM. The MSDN site says that code using DM can be written in C or C++.  I think that answers my question.  Sorry for wasting forum real-estate!   ;Quote:Original post by tj963I disagree.  I use DirectMusic, and it can be very powerful if you have decent samples/DLSs and enough practice composing with it.In response to the OP, I have no idea, but if you do just want to play MP3s or whatever, FMOD is a lot easier.  I expect it's a little painful, since you have to do a bunch of COM initialization, which I expect is similar, so look into that in C#.tj963I apologize for my ignorance.  Could you please tell me what FMOD is?  Yeah, from MonkeyCookie's post it seems like dealing with COM would be necessary.  I'm a newbie to programming and while I fully intend on learning how to program using C++, I'm using C# right now so I can concentrate more on the actual algorithm rather than worry about syntax.Thanks for the info!   ;  FMOD is a really easy to use, cross-platform, music and sound library, just stick in the FMOD.dll with your project and you're good to go. It uses functions rather than objects and classes.fmod.org