I'm creating an application that will have 3 streams of audio. I can get 2 streams playing easy enough using DirectX AudioVideoPlayback and setting the balance for each Audio Instance. However, I need a 3rd Audio instance to play out of another output such as the Rear or Centre. An alternative would be to be able to select a different sound device in the machine to play the 3rd audio stream.
I have a question about of capture sound function, someone have a code example for visual basic 2010 in windows 7?, I tried using mcisendstring function but the sound quality, is poor.
I 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.
im making a techno progam in visual basic 2008 and after 3 hour im think how to save the sound they make and catshing a sound recorder but what the code im try to find on internet but find 0 pleas give me the code im try to find
I need to get the decibel level of sound being sent to the sound card (not the actual sound level the speakers are instructed to emit via volume level)There is next to no information i can find on the net to even access sound data. Could anyone point me in a direction for this? The OS will be vista/7.
I'm creating an application that will have 3 streams of audio.I can get 2 streams playing easy enough using DirectX AudioVideoPlayback and setting the balance for each Audio Instance.However, I need a 3rd Audio instance to play out of another output such as the Rear or Centre.An alternative would be to be able to select a different sound device in the machine to play the 3rd audio stream.I've been searching the net for 2 days now trying to find a solution, but have so far been unsuccessful. I've tried a few alternative libs such as DirectShow.Net, DirectSound, BASS.Net, QuickTime and OpenTK.Some of them do what I need to do, but they are either too difficult to use and therefore impractical or they are missing some other essential features such as Events which are required to make the rest of the application work. Would anyone oppose to me posting this same thread on other forums?I will of course post a solution if one is found elsewhere without advertising external websites.
I'm polishing a vb.net hangman game. I added the sound of a turkey gobbling when you win the game. This is in my loop for when you win:
Dim sndPing As New SoundPlayer(My.Resources.turkey) sndPing.Play() My.Computer.Audio.Play("C:UsersjohnDesktopCS120_FinalProject_Hannonv2.0CS120_FinalProject_Hannonv1.5FinalProject_Hangman_HannonFinalProject_Hangman_HannonResources urkey.wav", AudioPlayMode.Background)
I have loaded the turkey.wav file into my resources, but I cannot give it a local directory with the "Resources urkey.wav" or My.Resources.turkey . I'm trying to find a way to send the file when I package it.
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
Is there a way to generate a pure tone (e.g. 440 Hz) for a specified period of time through the sound card without using having to find or make a separate .wav file for each tone.I tried using the "Beep" function, but while it produces the tone for a specified period, it sounds broken up into a (probably 500ms) time frame which repeats with an audible space between the repetitions.
i am trying to develop a program which will:to beging with, allow a user to use the left and right arrow keys to control the panning of a particular sound on loop. the actual panning dosent have to be programmed i could just instruct the program to play out the corresponding pre recorded panned sound?once achieved i hope to then develop the program to test a users ability to pan one sound to match a stationary sound at a given angle. i will need to record the time taken to achieve this, the number of key presses made and how accurate their answer was.i am using visual studio 2005 to build my program?
I looked I came accross this code My.Computer.Audio.Play(My.Resources.LAVE, AudioPlayMode.Background) LAVE is my resource file that I have added LAVE.mp3 the problem is that the program automatically gives runtime error when I run it but I get no syntax erros.
To programming and have a question with sound files. I am trying to figure out the basics and here is what I did: I created a button that is supposed to play a sound.
My.Computer.Audio.Play("C:.......file.wav")
When I click this button in my .exe file it obviously plays because I am using the computer with the above location for the .wav file. When I use the .exe on another computer it doesn't play because it does not recognize that .wav location. How do I make this work for me? Do I need to embed the .wav with my .exe somehow?
I would like to be able to measure the frequency of a sine wave applied to the input of a "standard" Windows sound card system.I need to do this in near real-time (not by analyzing a wav file after the event) and I need to continuously measure every half-cycle of audio and store the results in some kind of buffer that I can read into a VB app. I have tried googling for this and it seems to be a very popular question but I have not found any really good answers. Does anyone know of a DLL that could do this? I wouldn't mind paying a reasonable sum for a commercial DLL if there is such a thing.
Another related requirement is to generate sine-waves - again this must be done in near real-time and it must be possible to change each half-cylce of the waveform. For example,I might need to generate a few half-cycles of 1500 Hz to be followed (with no break in the waveform) by half-a-cycle of 2300 Hz.
I am trying to create a sub that plays a sound sweep from the provided values.The code im using works but it sounds horrbile, hacky crap.... I could go on.
Sub PlaySweep(ByVal min As Integer, ByVal max As Integer, ByVal Duration As Integer) Dim playtime As Long = Duration / (max - min) 'The Play Time for each frequncy For i = min To max
I was wondering what sorta code you would you to check if audio is going though a sound card?I am designing a media player and I would like to show that audio is playing.
So I had this idea to make a virtual drum set and my school book doesn't have the answer for me and I haven't been able to successfully google this. The only things I need to know is how to add a sound to a picture box that will activate when clicked and how to assign a key on the keyboard to activate the sound as well.
So im trying to figure out how i can change sound playback from head phones to speakers and from speakers back to headphones with 2 buttons, if u didnt get me: [Speaker button]<-- click=sound playback from speakers [Headphone button]<-- click=sound playback from headphones.
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.
I have a text box set up so when someone presses enter it performs a function, how can I disable the "Ding" sound that the computer makes when someone presses enter?
I'm working on a small game that I want to sync with the intensity of the music. I have a timer added and I want the interval to change with the intensity of the song playing. How would I go about doing this? I tried playing with Zplay and BASS.net with no luck.
This works great, but I would like to make it so that I can tell it to play the sound file starting at, for example, 3 seconds and ending at 9 seconds in. For instance, I could have 2 Numeric Up Down boxes on my form and whatever NuD1.value = is the lower range and NuD2.value = higher range.
How do I specify at what point in the sound file I want to start and at what point in that same file I want to stop?