VS 2008 : Application To Get Any Sound Playing From Pc And Play It?
Dec 6, 2009Is their a way for my application to get any sound playing from my pc and play it?
View 6 RepliesIs their a way for my application to get any sound playing from my pc and play it?
View 6 RepliesFor stopping by, is there a way to detect when a sound file (WAV) stops playing?
e.g.> There is a FORM with a PLAY button on which is coded to play a WAV file. But how does VB detect when the WAV file has finished playing?
Here is the code I have on the PLAY button
My.Computer.Audio.Play("test.wav", AudioPlayMode.BackgroundLoop)
I want to have a applacation then wehen somthing happens (like, uhh a error message but without the message box.) what would be the code that plays the windows alert sounds, and one that applies to the current sound scheme i have running.
View 1 RepliesI've been looking for a way to play an MP3 file over a specific sound device for a while now and I just haven't been able to find any decent code examples in VB.NET. Basically I need a way to find and list all the sound devices on the system and then play an MP3 file over one of them. I have found code examples in C# and similar but I couldn't find any VB.NET code.
View 2 RepliesI have background sound loop with the My.Computer.Audio and it works fine. I want to play another sound (like a beep) when desired without stopping the background sound. Several examples I have found don't seem to work. I am in VB.NET 2008 Professional.
View 8 RepliesI want my program to play sounds when an object is hovered, but I don't know how to code it.
View 1 Replieshow to play/pause mp3 anad wav sound in visual basic 2008?
View 1 RepliesIn my application I play sound files that are located in a folder on my computer's desktop.
Const sSoundFolder = "C:UsersChrisDesktopSound"
Now that I'm ready to deploy my app, I want to reference all the audio files so others can hear them in the application.
I read how to reference them... but what I don't know:
Do I have to change the above code to some sort of reference folder in my application instead of my desktop?
I am trying to build a small program which will allow some one to click on the exit button and the sound will play and at the end of the sound the program will then close. The sound clip is about 3 seconds long Here is what I have:
Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectSound
Public Class Form1
Private Dsound As CSoundDevice
[code]....
Im developing a TAPI Applicationi had many problems with Acepting the call and detecting DTMF tones, but now these problems are solved,,, now the problem im facing is to play a wave file to the user who is on the phone...... Is there anyone who can gimme code or tel me how to do this in Vb.net
View 5 RepliesI am creating a program in VB 2010 that needs to play two synthesized sine waves at the same time, one in the right channel and the other tone in the left channel.
These tones will be 2 slightly different frequencies.
I tried to start a thread a week or so ago, but I did not make it clear exactly what I needed, and did not get my project started yet.
I have a VB.NET application that crashes on a client's computer with a BSOD error... KERNEL_DATA_INPAGE_ERROR.This error occurs at a point where my program does two things:
Locks the computer
Plays a sound in BackgroundLoop mode
For locking the work station, I am just using this:
<DllImport("user32")> _
Public Shared Sub LockWorkStation()
End Sub
For playing the sound, I am doing this:
My.Computer.Audio.Play(My.Resources.ResourceManager.GetStream("somesound"), AudioPlayMode.BackgroundLoop)
Now, this sound loops until the user logs back in. My software detects the session state switch and stops playing the sound. Sometimes when I log back in, the sound card plays garbage data for a split second, instead of the rest of the audio buffer. I get the impression that this has something to do with session switching.Could my client be having an issue where there is memory corruption occurring at the point of locking the computer?I apologize for the vagueness of this post... I am not sure where to begin as I cannot reproduce the problem myself.
Edit: If the sound is left to play on its own, even without locking the computer, eventually the computer will lock up and then bluescreen. Playing the sound while locking at the same causes it to happen sooner.
Edit #2: So I've seen it fail now. The sound loop starts playing correctly but quickly switches to looping of garbage data. It's as if it is just reading a random location in memory and looping that. Very strange behavior!
Here is the code that I have that plays a certain sound
Dim Alarm As System.Media.SoundPlayer = New System.Media.SoundPlayer(Steven_Anderson_HW5.My.Resources.Alarm)
Alarm.Play()
Well, is there a way to make the sound repeat itself after it is done playing?
I want to play all sound formats in visual basic pocket pc.I'm using visual studio 2005 . net
View 2 Replieshow to detect what frequency of the sound that is playing on a speaker on vb2005. what reference should i have. what function should i use.
View 3 RepliesI made a Listbox but there is an issue.. I want to play a sound when I click one of the names in the listbox.
View 6 RepliesI'm writing a metronome program (a.k.a. click track; it's used for keeping you in time in music), and can't for ther life of me figure out how to play a sound byte (a short beep) as the beat.
I know I need to place this code in the Timer Tick event, but I just have no idea how to import/reference etc. the sound.
How can I display text while a sound is playing? It keep pausing until the sound has completed.
View 1 RepliesI'm playing videos in a form with an embedded media player, I want to play one, and later another one, how I can programm a pause for the first video to play, and later to play a second one. system.thread seems is not the solution for me.
View 4 Repliesim trying to open another form2/app that have music but i wanna stop the sound in form1 from playing when form2 open?
View 1 RepliesI want to make a function to record the sound and then to play the record,like the telephone. I have ever download some articles,but they were all too complex,or they have too many unassociate code,so I can not understand the courses of the recording and playing.I want to get some code here?
View 2 RepliesI'm using OpenTK to get OpenAL lib.I'm using OpenAL to play multiple wav files at a time(or so i want).Do you know any tutorial/source code in .Net (VB/C# doesn't matter) that could help me use OpenAL to play multiple files?
View 4 Repliesi have designed my owm mp3 player . and now i want to add a sound visuvalizer in my program . but i dont now how can i do this? how can i find sound Frequence?
View 1 RepliesHow Can I Play A Sound In Vb Express?
View 2 RepliesI want to play a sound on start. I imported my sound.vb, added m.wav as a resource. changed m.wav to embedded resource. but it wont work??? Just to check my code i made a new project, used the same code, and it worked fine.
[Code]....
I'm trying to play audio files (.mp3, .wav whatever it is) with mciSendString function but it's not working. Here's my codes
//// here is the api
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Integer, ByVal hwndCallback As Integer) As Integer
[Code]....
How can I play more than one sound at a time? I have a song that I want to play and a sound effect, but when I play one it stops the other. They are both dimmed as two seperate media.soundplayer and they are both pulled from the same reference folder and they are two seperate files. How could I do this?
View 3 RepliesI have a Command1 and when I click it, I want a sound to be played.
[code]...
I have a need to play a continous tone, say 1000 Hz, until the user responds. I'm aware of the following:
'Sound Player...plays wave files.
Dim sp as New SoundPlayer
sp.SoundLocation = <MyWave.wav>
sp.Play
[Code]...
I want to play all sound formats in visual basic
View 1 Replies