tags:

views:

68

answers:

0

I am trying to create an mp4 file from the data of a .wav file.

I need to do this to submit it to a C# MediaElement as its source.

I have been having problems playing a .wav file with the media element while my application takes "exclusive mode" control of all sounds on the platform.

I found that if I set my source as a .mp4 file, then play the element, that it would play just fine and do what I expect it to do. However, when I set my source as a .wav file and play the element, it will not play it.

I found a workaround if I can set the source as a .mp4 file with the same time duration as my .wav file, it will play it.

Long story short, I am looking for a method to convert my source .wav file to an .mp4 file to be used as a temporary loading source for my MediaElement so that it will play.

I am also limited on hard disk memory space, so if we can overwrite the same mp4 file, that would be great.

Anyone have experience doing such a thing?