473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Playing audio from a stream

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.

May 3 '06 #1
3 6333
Hello, dm*****@gmail.com!

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
May 3 '06 #2
I think that is only for wav streams. So you need to get mp3 or wma to wav.

--
William Stacey [MVP]

"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:Ol**************@TK2MSFTNGP04.phx.gbl...
| Hello, dm*****@gmail.com!
|
| 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
May 3 '06 #3
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.

May 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sugapablo | last post by:
I had an idea for something that I can't find any evidence if it exists, or if it can be done. I assume it can be done. What I'd like to be able to do, is to allow people who come to my website,...
1
by: laredotornado | last post by:
Hello, I want to play an audio file embedded on my page by clicking on an audio image and the page change to a new page. Is there a cross-browser Javascript way to do this? Right now the code I...
14
by: gilad | last post by:
Hi, I have just released the initial beta of a C# project called 'aumplib'. aumplib is a C# namespace which is made up of a set of classes that interface several prominent open source audio...
7
by: Lee Moody | last post by:
I just want quick and easy way to play a .wav file out the standard sound device. It could even be as simple as activating a sound assigned to an existing windows sound event. Any suggestions?...
1
by: Terry Olsen | last post by:
Using the following routine to play embedded wav files: Private Sub PlaySound(ByVal Sound As Int32) Select Case Sound Case 1 : My.Computer.Audio.Play(My.Resources.Sounds.GoOnline,...
0
by: Mark Rae | last post by:
Hi, Can anyone recommend a good technique, or point me at a good 3rd party utility, which will play media files on ASP.NET 2 pages? Typically, the audio files will be MP3s and the videos will be...
6
by: Quentin | last post by:
Hi, I want to save an audio stream into a circular file so that I only keep say the last hour's audio. Can anybody help? Cheers, Quentin
4
by: hzgt9b | last post by:
Using VS 2003, VB.NET and/or ASP.NET 2.0, BACKGROUND I have a window forms based application that contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowser) control. The TreeView is...
4
by: fAnSKyer/C# newbie | last post by:
I am using winmm.dll and I found that I can't just suspend it and resume it? What should I do? Any better idea? Should I use thread? and thread.suspend will work? Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.