473,407 Members | 2,315 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,407 software developers and data experts.

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 1343
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
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
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
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
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
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
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
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
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
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
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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...

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.