Playing audio from a stream

D

dmeglio

Lets say I have a MemoryStream. This stream contains either WAV, MP3,
or WMA data. Is there anyway to play this in C# without creating temp
files? If anyone knows of an existing component, either free or not
free, that will let me do this, please let me know!

Thanks.
 
V

Vadym Stetsyak

Hello, (e-mail address removed)!

d> Lets say I have a MemoryStream. This stream contains either WAV, MP3,
d> or WMA data. Is there anyway to play this in C# without creating temp
d> files? If anyone knows of an existing component, either free or not
d> free, that will let me do this, please let me know!

For .NET 2.0
SoundPlayer class from System.Media has Stream property, that IMO maybe useful for you
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
W

William Stacey [MVP]

I think that is only for wav streams. So you need to get mp3 or wma to wav.

--
William Stacey [MVP]

| Hello, (e-mail address removed)!
|
| d> Lets say I have a MemoryStream. This stream contains either WAV, MP3,
| d> or WMA data. Is there anyway to play this in C# without creating temp
| d> files? If anyone knows of an existing component, either free or not
| d> free, that will let me do this, please let me know!
|
| For .NET 2.0
| SoundPlayer class from System.Media has Stream property, that IMO maybe
useful for you
| --
| Regards, Vadym Stetsyak
| www: http://vadmyst.blogspot.com
 
D

dmeglio

Unfortunately, the project has to support .NET 1.1. Is there anyway to
do it there? Like I said, if I have to buy some components, that's fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top