0
Reply

Using C# to save sound?

Fahed Al Daye

Fahed Al Daye

Jun 1 2010 1:14 AM
2.4k
Hello,

I am making an editor for the engine that will run both for Windows and xBox 360, I am using the XNA technology for the engine as it is the best for this stuff.  However, the editor does not require the use of the XNA technology. How do I load sound in the form, have a button that plays the sound, stop the sound and then save the sound in my own .bin file?

Let us say the sound.bin have two sound files stored in them, not just a little c:\location\sound.wav string that directs it to the sound, but the actual two sounds are stored in the file. How do you do that? And Using the reverse method of saving these sounds to load them and store them in the array, array[0]=holds sound 1, array[1]=holds sound 2, then using the function I would be able to play that sound, how do I do that? Can anyone help to the right direction how to achieve this? Thanks in advance.