Sounds - Play Two .WAV Files At Once
Dec 7, 2009I am making a program that plays a sound whenever you hit a button, and was wondering if there was a way to play two .WAV files at once. Here is what the code looks like:
[Code]...
I am making a program that plays a sound whenever you hit a button, and was wondering if there was a way to play two .WAV files at once. Here is what the code looks like:
[Code]...
well i wanted to make a piano with visual basic 2008 and i searched around the internet to see how to play a sound but my search returned results relating only to visual basic 2005 & 6 so i am again forced to waste your time
View 3 Repliesi need a way to play wav and mp3 sounds using vb net. its has to be able to play more than one sound at same time and also to play the same sound again even if it has not finished playing
i tried this
Code:
Dim ch As String
ch = Chr(34) & TextBox1.Text & Chr(34)
mciSendString("open " & ch & " alias s1", Nothing, 0, 0)
mciSendString("play s1", Nothing, 0, 0)
it plays the sound once then will not play any other sound at all.
What is the simplest way to play two or more sounds at the same time? It should be a light software.
View 3 RepliesIs it possible to play two or more sounds at the same time (i.e., one plays in the background and one plays a sound effect) and if so, how can I do this? I am having problems because it is cancelling one of the sounds out when the other starts.
View 7 Repliesi wanted to make a piano with visual basic 2008 and i searched around the internet to see how to play a sound but my search returned results relating only to visual basic 2005 & 6 so i am again forced to waste your time (sorry about that) oh and i also have the wav soundfiles i only want vb to read them in the final exe
View 3 RepliesHow do i play 2 sounds at once? i have a sound effect on a button, and when i press it, it does the sound effect of the button and stops the music sound
View 3 RepliesI want to play system sounds with .NET code in my app - no problem if I want to use Beep, Asterisk etc as I can just use: My.Computer.Audio.Play SystemSound(Media.SystemSounds.Asterisk)But what if I want to play something like 'Menu Pop-up'? This sound is off by default in the Windows Default Sound Scheme, but if the user has set this sound up to do something then I want to play it.The user could have assigned any wav file to this action so I want to find which (if any) sound they have assigned and play it. Compatibility with Windows versions back to XP is also essential.
View 1 RepliesI am developing a chat application in asp.net using vb.net. In this, if a user receives a new message from other users then I want to play a sound to let him know that he received a message. I wanted to play some .wav files.
View 2 Replies me and a partner need to play sounds when certain events occur, however, every method we try..
My.Computer.Audo.Play("file.wav")
or?
Sound.PlayWaveFile("file.wav") from this class: http:[url]....etc they all don't work
They do NOT throw any exceptions, they just dont play the music, the test demo of the Sound Class works like a charm, its just not working in our project..same with My.Computer. Audio. Play.what could we have done to make it so that we can't play sounds from our application?
PS: this problem occurs on all of the computers we test it on, yet the normal sound-playing methods seem to work on all of those computers when they are implemented in other projects.. its just not working in these instances
I know how to access and play the system sounds using vb.net, and I also know that using the registry to save users' settings isn't ideal, however, The details of my project are rather long and drawn out, so I'll skip most of them Basically my program is loaded onto several computers on our network. The entire purpose of this program is to sound various alarms on different dates and times. Apparently I am to set up the program so that the different alarm sounds can be configured through Windows' control panel.
I can add the program into the appropriate part of the Registry in order to make that happen. The problem is reading the the information back. Under the name of the app, I have four different subkeys, each with the name of one of the alarms. Under those keys are two other subkeys, .default and .current. How do I get the sound from .current to play? For some weird reason I get null returned any time I try to read the key that I created.
What is the easiest way to play a sound from windows sounds? Does .NET built-in library for that?
View 1 RepliesI want to play multiple sounds simultaneously from My.Resources in Visual Basic 2010. I have tried:My.Computer.Audio.Play(My.Resources.SoundName, AudioPlayMode.Background)
I have also tried using multiple Windows Media Player controls, but that also didn't work.The first sound is cut off when the next sound plays.When searching around the internet I found people suggesting using 'DirectSound', but there are only tutorials for DirectSound in VB 6.0.
I am looking for a way to play the usual MIDI sounds in a VB program. Similar to the beep program (ie console.beep, leading to timer1.start etc.)but instead of an annoying bleep, have a MIDI sound (like a flute, violin, clarinet, etc.). Is this possible in VB 2008?
View 10 RepliesI am using the following code to play sounds in my VB.NET application: [Code] now this works fine for any sound file. However there is a second sound file (sound2.wav) which I want to play sometimes too. I want sound2 to have priority over sound1, however if I play sound2 using this method and then sound1 also plays a second later, sound2 will be canceled for sound1 to play.
So I'd like to know if there's a way to either play both sounds at once, or to check if sound2 is playing before I play sound1, and then only play sound1 if sound2 is not currently playing.
i have a button in my application that starts a function to play sounds.But when the function starts a have a problem that my application stops working until all the sounds are played. Then a want to display a waiting screen to show the status of the current application. To this i thought to create a new thread to open the waiting window and then show the messages.
But i have a problem that when my thread finishes, it closes the waiting screen. I tryied to put a loop inside my thread, but this crashes my aplication until the loop condition is satisfied.
For an application I am building, I need to have the user specify button labels and be able to click on them to play a sound they specify. I would like them to be able to specify the number of buttons, the label for the buttons, and the sound file to be played. I would then like the user to be able to save those settings. How do I go about doing this? Also, how do I get the file they've opened's name to show up in the title bar of the app?
View 2 RepliesI am wanting to simply insert a sound/music file into my program, and perhaps make a button function to make it play?
View 5 RepliesI have a button in my application that starts a function to play sounds. But when the function starts a have a problem that my application stops working until all the sounds are played. Then a want to display a waiting screen to show the status of the current application. To this i thought to create a new thread to open the waiting window and then show the messages. But i have a problem that when my thread finishes, it closes the waiting screen. I tryied to put a loop inside my thread, but this crashes my aplication until the loop condition is satisfied.
View 2 Replieswhere can I find VB resources, like graphics, sounds, & other related files?
View 6 RepliesHow could I...
- Increase the frequency of every part of a wave file by a specified amount of Hz
- Increase/decrease the length of a wave file without reading it faster = changing the pitch
- Combine many wave files into one
I wrote a program to download and play AVI files the files are large in size and long time wise. I have the files playing as they are being downloaded but i can't see how long the file is or seek reliably. i was reading that the AVI headers are in the last 512kb of the AVI file *why would't they put it at the start* lol so my question is is there a way to download the last 512Kb of the file i'm downloading. i have the Bytes Read and Length of the file while its downlaoding i'm just not sure where to go from there, or how to do it atleast. If i had the length in time of the Avi file i could set the trackbar to be able to seek properly. or if someone has an idea how i could get the time of the video by using fps and some math i could prob do it that way too but idk how i would tell how i can find how many kb are in the fps i'm sure it changes so think that way is't going to be reliable. how to get the last 512kb would be the best option not sure if it can be done even.
View 4 Replieshow can i get it to play other files besides just .wav, like .mp3. wave files are way too large to be used easily if you want a good quality. why cant i play .mp3 files with it?when i convert a 2.1 mb mp3 file to .wav it turns out to be 36 mb?any other ways besides computer.audio to play audio files on command?
View 1 RepliesI've been working on an mp3 alarm for awhile, but had to put it on hold for a bit because I can't get it to play anything other than .wav's. How'd you do it?
View 3 RepliesI have this task of writing a code that would play a series of wav files and then allow a person make comment on that wav file.
View 1 Repliesthe user may open a 4 minute audio what i wnat is just to record first one minute or between two points(like between 1.14 and 1.32) and save in to .wav format
View 4 RepliesmediaSoundPlayer can only handle wav files.
View 1 RepliesHow do I play audio/video files in VB.NET?
remember to mark the replies as answers.
I'm trying to write a program that allows you to; 1) open a mp3 or wav file via the user finding the file and copying the file path and pasting it into a text box and, 2) by pressing a button it will play the desired file, and then 3) by pressing another button it will stop playing the file. I've already have this under pat,
Private Sub cmdOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOne.Click
My.Computer.Audio.Play(My.Resources.buzzer, AudioPlayMode.Background)
End Sub
im making a program that can play mp3 files but now i only have to figure out how to make them load in a listview i thougt of starting the program then letting it show sort of a folder chooser and then it should open the music chooser form ... (that works fine) now to make al the mp3 inside the folder load should i use sort of a filter or somthing i thougt of [code]
View 8 Replies