473,320 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Vb6 Sounds

H
Hi Guys,

I am using the PlaySound to play .wav files in my application. Eg.

a = PlaySound(App.Path & chip_sound, SND_ASYNC)

Is it possible to play two sounds at the same time? Everytime the 2nd sound
is started the first sound is automatically stopped..

Thanks!
Jul 17 '05 #1
1 3861
In a word, no. The function can stop currently playing sounds to play the
sound you specify, or it can check if there's already a sound playing, and
if it is, not play the new sound. Search on microsoft.com for PlaySound for
a full explanation of the flags.

I haven't actually got round to adding any sounds to my games yet... but I
plan to! The first place I'd look for this sort of task is game programming
sites. Maybe you could consider using DirectSound?? Depending on the scope
of your application, obviously.
___________________________________
The Grim Reaper

"H" <H@opijpoijpoij.com> wrote in message
news:X9********************@karoo.co.uk...
Hi Guys,

I am using the PlaySound to play .wav files in my application. Eg.

a = PlaySound(App.Path & chip_sound, SND_ASYNC)

Is it possible to play two sounds at the same time? Everytime the 2nd sound is started the first sound is automatically stopped..

Thanks!

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kiteman \(Canada\) | last post by:
Instead of a beep sound playing as an alarm or reminder I would like to be able to play a more interesting sound. On the web, I found and tried a sound routine that uses the SOUND.DRV but it does...
6
by: BlackHawke | last post by:
Hello! In our game package (www.andromedaonline.net) we are having problems with sounds. We have placed them in a jar file, and are trying to access them from there. The jar file has a...
1
by: Knocked Wood | last post by:
Hi, I looked around and can't find anything on this at all and can not get it to work for IE. I'm trying to loop multiple sounds on a game, with three unique variables, when a link is clicked....
3
by: Lee David | last post by:
Where can I find some 1) sounds such as a "boing" or "click", 2) what tags do I use and 3) are there examples of triggering a sound such as 1) button clicked and 2) when a time interval has passed?...
6
by: Jimnbigd | last post by:
I want to write a game, and sounds will really add to it. Note that I would always make the sounds optional. I hate it when I go to a URL and unexpectedly get sounds or music. I have played...
1
by: ilPostino | last post by:
Does anyone know how to play system sounds? Or to install your own sounds and then call them from the application? C
1
by: Terry Olsen | last post by:
Using the following routine to play embedded wav files: Private Sub PlaySound(ByVal Sound As Int32) Select Case Sound Case 1 : My.Computer.Audio.Play(My.Resources.Sounds.GoOnline,...
10
ADezii
by: ADezii | last post by:
Most Access Users fail to realize that they can significantly enhance their applications by introducing various sounds (*.WAVs) in response to specific events. The only intrinsic sound that Access...
1
by: michels287 | last post by:
Hello... Currently I have an array of 8 listboxes in VB6. Each item in my listbox plays a wav sound from a large file on my desktop called "Sounds". I am using the sndPlaySound API. The code I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.