Possible To Play Two Or More Sounds At Same Time?

Feb 2, 2009

Is 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 Replies


ADVERTISEMENT

Play 2 Or More Sounds At The Same Time

May 4, 2011

What is the simplest way to play two or more sounds at the same time? It should be a light software.

View 3 Replies

How To Play Sounds In Vb 9

Nov 25, 2009

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 Replies

Play Wav And Mp3 Sounds Using .net?

Apr 23, 2010

i 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.

View 1 Replies

Resolved How To Play Sounds In Vb 9

Oct 29, 2009

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 (sorry about that) oh and i also have the wav soundfiles i only want vb to read them in the final exe

View 3 Replies

Sounds - Play Two .WAV Files At Once

Dec 7, 2009

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]...

View 8 Replies

VS 2008 Play 2 Sounds At Once?

Dec 11, 2009

How 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 Replies

How To Play Non Default System Sounds In .NET

May 12, 2011

I 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 Replies

Play Sounds On Receiving Message In Asp.net?

Feb 20, 2012

I 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

Play Sounds When Certain Events Occur?

Oct 22, 2009

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

View 5 Replies

Forms :: How To Access And Play System Sounds

Oct 5, 2009

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.

View 5 Replies

Play Default Windows Sounds (not Beeps)?

Dec 7, 2011

What is the easiest way to play a sound from windows sounds? Does .NET built-in library for that?

View 1 Replies

Play Multiple Sounds Simultaneously From Resources?

Dec 13, 2010

I 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.

View 1 Replies

Play The Usual MIDI Sounds In A VB Program?

Jan 14, 2010

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 Replies

VS 2008 - Using Media.SoundPlayer() To Play 2 Sounds

Jan 6, 2010

I 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.

View 1 Replies

Button In Application That Starts A Function To Play Sounds?

Mar 18, 2009

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.

View 1 Replies

Play Sounds From User Specified Buttons + Save Settings?

Nov 20, 2008

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 Replies

VS 2010 Put Music/sounds Inside Program And Play Them?

Sep 20, 2010

I am wanting to simply insert a sound/music file into my program, and perhaps make a button function to make it play?

View 5 Replies

Thread - Waiting Screen - Button In Application That Starts A Function To Play Sounds

Mar 20, 2009

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.

View 2 Replies

Playing Two Sounds At A Time?

May 26, 2012

how do you do this playing two sounds at a time?

View 4 Replies

Game Programming :: Playing 2 Sounds At One Time?

Feb 19, 2009

Its me again the newb programmer. lol why does it not allow you to play 2 sounds at the same time? the back ground loop ends when the button click sound is played :/ and I'm using vb express 2008 .net

[Code]...

View 1 Replies

Show Messagebox/play Sound When System Time = Time Displayed In Listview?

Nov 13, 2010

Basically i'm trying making a task manager program for myself. I want to know how I can display a message box and or play a sound when system time = time displayed in listview. I have used a dropdown box for the user to select which option they would like to select - sound or message box to popup. The data for the task will be stored in a listview box. I want it so that when the date and the time is = to the date and time set for the reminder the action will follow.Here is my code so far:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim notext As String = ""
If TextBox1.Text = notext Then[code]....

View 12 Replies

Play Two Audio Clips At Same Time?

Jul 2, 2009

I do get that I'm going to need to "thread" them separately, but I've been unsuccessful so far.

I get the audio clips to play, but when one starts, the other stops.

This is code that's playing the audio, derived from examples in preior postings[code]...

View 23 Replies

VS 2010 Checking Time To Play A Sound?

Aug 21, 2011

I have a program which have to play a sound at a specific time in each day.Currently I made a timer with 450 interval and I put a code in it which check if datetime.now = mytime then it will play the sound.(the program runs in background)

It is working but the problem is that sometimes it doesn't play the sound. I think I didn't used a proper way to this.I have even tried checking datetime.now.hour & .minute & .second with mytime to make sure it does play it at the right time But I don't know why the timer sometimes miss it and the play sound won't be run.

View 4 Replies

AxWindowsMediaPlayer - Current Position And Play Time Difference?

Jan 10, 2012

I'm using VB 2010 Express with two instance of AxWindowsMediaPlayer in order to sync two videos (the videos are of the same thing but from two camera angles). Because the videos were started at slightly different times I've manually set the start time of each one using the following

AxWindowsMediaPlayer1.Ctlcontrols.currentPosition = 314.5093196
AxWindowsMediaPlayer2.Ctlcontrols.currentPosition = 237.1639908

The problem I'm having is that whilst the WMP clock initially displays the above times in each AxWindowsMediaPlayer, when I play the videos each starts a few seconds out from the stated currentPositions.

The video files are around 300MB each and when testing with smaller video files the problem does not seem to happen. I'm guessing the large file size is causing some delay and hence causing the problem.

View 1 Replies

Make An Application To Play Movies Etc At Predefined Time?

Mar 23, 2010

i want to make an application to play movies etc at predefined time. i want to add the facility of overlaying graphics also.

View 1 Replies

Wmplib And Vb2010 Express How Get Duration Play Time Mp3 Files Using Fileopen Only

May 2, 2011

I am using wmplib and i like to know a duration time of a lot of files onto a same folder (software for audiobook for low vision persons)

View 2 Replies

Inserting A Wait - So That Animation Has Time To Play And Stop Then Rest Of Code Will Display Other Picture And Numbers

Nov 4, 2011

I have the following

Public Class Form1
Private GIFAnim As Image = Image.FromFile("c:cointosscointoss_ani.gif")
Private frames As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[CODE]...

Now I would like to put a wait in after the line:

frames = GIFAnim.GetFrameCount(Imaging.FrameDimension.Time)
ImageAnimator.Animate(GIFAnim, AddressOf paintFrame)

This is so that the animation has time to play and stop and then the rest of the code will display the other picture and the numbers. Is this possible? I tried timer and sleep but I cant get them to work.

View 16 Replies

Click The The Song To Play, Even The Play Song Finish But Does't Play Automatically?

May 8, 2010

I want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.

If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then

[code].....

View 4 Replies

Shell - Media Player Play File Error - Refuses To Play

Sep 16, 2010

Im trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")

It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""

It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.

Heres my code

Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)

'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index

[CODE]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved