473,499 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i play a sound in VB.NET?

Hello

Is there any class or method in .NET for playing Sounds ( wav, mp3 etc) ? Or it is needed to call an API function

Thanks,
Nikos
Jul 21 '05 #1
5 1344
Hi Nikos,

You can check this thread, this is from the newsgroup
microsoft.public.dotnet.languages.vb

http://tinyurl.com/2ehx4

A better place to ask it, however I never saw real great answers, you can
also think about downloading the mediaplayer SDK

However better is to ask this kind of questions in the newsgroup I did
pointed you on above.

I hope this helps?

Cor
Jul 21 '05 #2
Hi Nikos,

You can check this thread, this is from the newsgroup
microsoft.public.dotnet.languages.vb

http://tinyurl.com/2ehx4

A better place to ask it, however I never saw real great answers, you can
also think about downloading the mediaplayer SDK

However better is to ask this kind of questions in the newsgroup I did
pointed you on above.

I hope this helps?

Cor
Jul 21 '05 #3
I agree with Cor. If you just want to play wav files, than you can P/Invoke
the playsound api. If you know the name of the player, you can use
Process.Start passing in the player and the file. Or you can use DirectX
which also entails some pretty heavy P/Invoking.
"Nikos" <an*******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
Hello,

Is there any class or method in .NET for playing Sounds ( wav, mp3 etc) ? Or it is needed to call an API function?
Thanks,
Nikos

Jul 21 '05 #4
I agree with Cor. If you just want to play wav files, than you can P/Invoke
the playsound api. If you know the name of the player, you can use
Process.Start passing in the player and the file. Or you can use DirectX
which also entails some pretty heavy P/Invoking.
"Nikos" <an*******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
Hello,

Is there any class or method in .NET for playing Sounds ( wav, mp3 etc) ? Or it is needed to call an API function?
Thanks,
Nikos

Jul 21 '05 #5
Thanks,

I will check it

Nikos
Jul 21 '05 #6

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

Similar topics

22
2505
by: The Road To Utopia | last post by:
Here's one for the trolls...a common jibe from them is setting up audio/video hardware under linux. Ok, true story: at work today, someone asked me if I could tell him why his XP Home would play...
6
4026
by: Andrew Poulos | last post by:
As a follow on to the 'fun' I had with IE I'm now trying to play sounds using an Object tag (no Embed) in MZ. Sadly whenever 'playButton' gets clicked MZ says that "audObj.Play is not a function":...
1
4275
by: Ron Provost | last post by:
Hello, I'm developing a piece of software to assist illiteraate adults to learn to read. I'm trying to figure out how, if possible, to make audio playback asynchrnous but still controllable. ...
2
4572
by: NB | last post by:
I've done a thorough search, but could not find any posts If I store a sound file within the mdb, How do I play it (in a form event, for example) I can save it to a temp folder and call the...
22
3703
by: MLH | last post by:
I have some audio help files that play fine from within Access 97 and Access 2.0. Both are running on a Windows XP box. But I do not know what program plays the files. If I click Start, Run and...
5
7164
by: Dennis C. Drumm | last post by:
I have a windows form configured as a fixed dialog I'm using as a custom MessageBox (has some additional buttons). How do I get it to play the standard windows sounds when envoked and can I insert...
1
7980
by: Lam | last post by:
how can I play sound file in a .aspx page written in C#? I try to use the code like the following. But whenI call the play function play("sound.wav", this.SND_ASYNC) my computer give out "be"...
3
10609
by: Jared | last post by:
I'm using the first code sample below to play WAV files stored as embedded resources. For some reason I *occasionally* get scratching and crackling. I'm using a couple WAVs that ship with...
5
2133
by: | last post by:
Hello, I am wrtting a program that does some sound effects... the files are stored in a subfolder in the application folder... and I check the existence of the files before calling the method to...
26
3853
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
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
7180
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,...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.