Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing a sound file in Directx from a resource file

Status
Not open for further replies.

zrefugee

Technical User
Jan 19, 2004
22
0
0
US
I would like to use the resource files in C# to play a .wav in Directx, but it only accepts a string argument. Is there any way to use Namespace.Properties.Resources. Thanks for any help.
 
You can always open the stream from the resource file and save it as a file in a temp location before you play it. When the program exits you can delete the temp directory with all the audio files in it if you choose.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top