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!

.net audio resource file to play in media player

Status
Not open for further replies.

sin1965

Programmer
Nov 6, 2005
46
0
0
GB
hi
is it possible to cast a vb.net 2005 audio wav file embedded as a resource from type IO.UnmanagedMemoryStream to IWMPMedia interface so that I can play resource audio in windows media player?
any help would be appreciated
sin1965
 
I currently am trying something simular, but found the only way is to save the audio into a temp file and give wmp the filename, then remove the temp file when the app closes or when wmp has finished with it.

The only other way i could think of, was to create a network class (using threading) to stream the file to wmp. But this is well too much for a small project, due to the fact that you'll end up with a http web/media server...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top