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?

Apr 17, 2009

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

View 14 Replies


ADVERTISEMENT

Play All Sound Formats In Program?

Jul 2, 2009

I want to play all sound formats in visual basic

View 1 Replies

Play Another Sound (like A Beep) When Desired Without Stopping The Background Sound?

Apr 19, 2009

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.

View 8 Replies

Make Touch Button Color And Play Sound?

Jan 25, 2012

how to make the button color changed while we move mouse on it with play sound effect in the same time.

Ex:

My Button name = Search

Normally "Search" is black color while touch on it change to Blue color.

View 7 Replies

Play A Sound Clip In A Form With Mute Button?

May 24, 2012

I wonder how to put a sound clip in my vb.net form.I am using vb 2008.When a user starts my program, I want the sound to be played automatically and with a mute button.

View 1 Replies

Add A Sound To A Button Click?

Mar 21, 2012

Is there a simple way of doing this

I found this online and I am getting an error[code]...

A call to PInvoke function 'WindowsApplication3!WindowsApplication3.Module1::apisndPlaySound' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

View 3 Replies

Give Sound To Button When It Is Click?

Apr 16, 2009

I have vb.net application , in which i want to add sound to button when click event occures.

View 3 Replies

VS 2005 Disable The Sound Card And Enable The Sound Card By Using Command Button?

Jun 27, 2011

i have windows app i want to disable the sound card and enable the sound card by using command button

View 2 Replies

Sound Recording Start / Stop In Button Click

Oct 9, 2010

I want to include a functionality in my application such that when the user clicks on a button, the user should be able to record the voice, and when stopped, the sound should be saved. Here's what I wrote for the Start and Stop button.

[Code]...

View 2 Replies

Right Click On Exit Button To Close Application

Aug 23, 2009

I am trying to make my form when user clicks on the exit button it will go to the tasktray bar. But when right clicked it will exit the application. How would I do this? I have a ToolWindow

View 3 Replies

Deployment :: Save Sound Into The Program?

Mar 31, 2010

ok i am making a "game" in visual basic 2008 and I have come across a problem...

I need it to be able to play a sound without saying that the sound is stored at "c: estsound.wav"

I have it working and playing the sound when i want but it only works on my computer

How can i save it into the resources just like you save a picture into resources?

Btw if it helps i am playing the sound using the axwindowsmediaplayer thing and it just plays the sound when the program loads...

so form1load then it plays the sound.

how i can make it play the sound on other computers?

View 1 Replies

Identify When Another Program Makes Sound

Sep 10, 2011

I was wondering if it would be possible to monitor a programs audio output and identify when its on / off? I'm coding a carpc frontend and would like to mute the audio when the navigation program speaks directions.

View 1 Replies

Making A Sound Editor Program?

Dec 30, 2008

I'm making a sound editor program, but i've got a problem: if you load a sound, the program must show the spectrum of the sound?

View 2 Replies

Program To Have Countdown And At 00 To Have Sound Horn?

May 10, 2009

I wrote a program to have countdown and at 00 to have sound horn. I got the clock running but the horn sound is delayed. I need the time at 00 to sound the horn. I use this in a game of basketball. How can I make the playsound at 00 seconds and not -01 second.

View 2 Replies

Sound From An Array Of Data In Program?

Jun 18, 2010

I'm getting data from an external source, storing it in a single array, and I want to turn it into sound, even though it isn't really sound to start with. I don't know how to build sound from data arrays, but I think it shouldn't be that hard. I am hoping someone can show me the secret.

The data get's read from a 12-bit data acquisition card at fifty mega-samples per second, and it normally contains ten distinct frequencies from about one megahertz to about five megahertz with some overtones. So it's very high-frequency stuff to start with, but it should be possible to to scale it down by, say a factor of a thousand (where humans can hear) then put it through a sound generator through VB, so I can hear it. Also, I don't want to export it as a .wav file first. I just want to format it and package it for the sound player, so I can listen to it live, as I play with the external stuff that affects the sampled waveform going into the card.

So, maybe I'd take a sample of a fraction of a millisecond, scale to a sound format, then output it to my speakers. A frame of 32,000 samples, for example is about 0.64 milliseconds of real time, but I could scale that out into quite a long sound. Ya think?

View 11 Replies

Make A Program To Record Sound From The Microphone?

Apr 10, 2010

How can I make a program to record sound from the microphone? I've tried lots of thing but they don't work. Can someone show me how to do ths using winmm.dll or DIrectx?

View 4 Replies

Make Program Wich Can Sound Voice?

Jan 12, 2010

how to make program wich can sound my voice when i push on the button and say something using microphone?

View 1 Replies

Play A Sound In OpenAL?

Apr 29, 2012

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

Animation When Play A Sound

Dec 20, 2009

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

Play A Sound In Vb Express?

Jan 15, 2010

How Can I Play A Sound In Vb Express?

View 2 Replies

Play A Sound On Start

May 17, 2009

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

View 2 Replies

Play Sound With MciSnedString?

Jul 4, 2009

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

View 8 Replies

VS 2005 Play More Than One Sound At Once

Jun 4, 2010

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 Replies

Way To Play Background Sound

Mar 4, 2010

I have a Command1 and when I click it, I want a sound to be played.

[code]...

View 14 Replies

Capture Sound - Using Mcisendstring Function But The Sound Quality, Is Poor?

Jun 20, 2011

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.

View 5 Replies

VS 2010 Adding Sound To A 3D Game / Finding A Sound Library?

Aug 24, 2011

I'm ready to start adding sound to a 3D game and I'm looking for a decent Free library.it would not require DX and be something like:

dim MySound as SoundLib.Sound
MySound = SoundLib.LoadSound("soundfile.wav")

SoundLib.Play3DWorld(Location.X, Location.Y, Location.Z, VolumeModifier, MySound)so far all Im finding is expensive, C#, old, or not .NET compatible.

View 9 Replies

Record Sound From The Normal Microphone Port Onto Program?

Feb 26, 2009

How do you record sound from the normal microphone port onto your program?

View 9 Replies

VS 2010 Record Sound And Save It In Program So That It Can Be Replayed?

Dec 7, 2011

Is there a way that I can record sound, and save it in the program so that it can be replayed?I'm making an alarm clock program, and I thought it would be cool if the user could record his/her own audio, and have it play back for him/her.

View 1 Replies

How To Play Sound UNTIL Hardware Input

Jun 16, 2009

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

View 2 Replies

Play A Sound File In .net 2008?

Jan 25, 2010

I want my program to play sounds when an object is hovered, but I don't know how to code it.

View 1 Replies







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