PlaySound "SND_PURGE" not working on Windows 2K -
The SND_PURGE flag for the PlaySound API doesn't seem to purge the .wav file thats currently playing. It works on Win 95, 98. Does anyone know if the SND_PURGE Flag is supported on Windows 2000. Can't seem to find any docs stating this.
PlaySound "SND_PURGE" not working on Windows 2K -
The SND_PURGE flag for the PlaySound API doesn't seem to purge the .wav file thats currently playing. It works on Win 95, 98. Does anyone know if the SND_PURGE Flag is supported on Windows 2000. Can't seem to find any docs stating this.
PlaySound -
Hello,
I use the API function "PlaySound" to play wav sound in my project
as mentioned in MSDN:
to play sound I write: Call PlaySound(strWavFile, 0&, SND_ASYNC)
to stop playing : Call PlaySound("", 0&, SND_PURGE)
but the last statement do
How do I know when the WAV is done playing -
How do I know when the music is done playing?
Here is a sample code that I got from Either Chris
or Jop:
Option Explicit
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags
Sound in VB3 -
I am using VB3 standard and want to put sound into my project I have tried numerous combinations as below but I keep getting this ERROR when I run this program...ERROR IN LOADING DLL.Anyone help me out
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundB"
Playsound Problem with Vista -
Hi all,
Having a problem with playsound.
I'm working in VB5 on an app that has given no problems under any other version of windows.
When I call playsound for the first time:
xx = PlaySound&(Pingfile, 0, &H1 Or &H20000)
I have about a 50/50 chance of it p
"Hello Sound" program using PlaySound -
I just found out, (from another post), that you can play sounds in an application using PlaySound(). I put this "Hello Sound" program together, but absolutely nothing happens at all. No errors, no linking problems, no squat. What's wrong here?
#include <windows.h>
Sound Problems!! -
Hello,
I was testing my program on a windows2000 computer and the sound is not playing?? I developed the application on a Windows98 computer and I am thinking that it is not working because I was runing it on a windows2000 computer. I used this code to play the sound:
Private Con
Stopping a WAV from playing -
I am writing an application that plays sound, using the "playsound" api. When playing sounds it uses the "loop/async" flags.
Is there a way of stopping the current sound from playing without playing the same sound again?
I have thought of recording a silent W
Does this work... -
[code]
Private Const SND_FILENAME = &H20000
Private Const SND_SYNC = &H0
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
------------------------------
Command for shuting down windows. -
I have a password program set up:
Code:
Option Explicit
Dim intCounter As Integer
Dim intUnCounter As Integer
'API Declarations
Private Const SND_APPLICATION = &H80 ' look for application specific association
Private Const SND_ALIAS = &H10000 ' na
Problem with Playsound -
Hi..I'm using his basic code to playsound...but when I run the progrm get freezed...I can not close until the sound clip finishes....what I should add to this code in order to avoid this problems
-----------------
Option Explicit
'Get the function on winmm.dll
Private D
Help with windows sounds.. module needed -
could someone please provide a module for me to stick into my app, so that I can just type:
modSound.Playsound "CrtiticalStop"
and it will play the current sound that windows makes when there is a big program error, or
modSound.PlaySound "DefaultBeep"
th
PlaySound - how to loop -
Ok, so I'm thick. But how on earth do I get this code to LOOP the sound so it keeps playing? I can't get it to work...
Code:
Option Explicit
Private Const SND_APPLICATION = &H80 ' look for application specific association
Private Const SND_ALIAS = &H10000
PlaySound API -
Does anyone know all the Windows sound names that can be used with the PlaySound API?
e.g. MenuCommand, MenuPopup
Thanks in advance
PlaySound trouble... any suggestions -
I am trying to play a .wav file from a resource file. I can do it fine when using the sndPlaySound API, but when using the PlaySound API it does not play.
This is the Code I have tried:
First attempt:
Private Declare Function PlaySound Lib "winmm.dll" Alias "Pla
PlaySound Async -
Hi All:
I've done extensive searching both on these forums and on the net, and can't find an answer.
Am using a resource file to play sounds. The following code is in module1. From various places within the program I'll call to play a specific sound.
Example: PlayMySound 10
Sound API -
Is there any way to have the playsound api continuously loop a sound file? I been using:
Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
along with declaring
PlaySound function -
i had trouble using playsound function, my game needs to keep playing sounds, and i did use snd_nostop and snd_nowait, however the problem is that when i try to play a lot of them almost at the same time, with no waits, some sounds are not played.... is it just my computer not able to
Find out if wav file is finished playing... -
I am using this code to play a wav file:
Code:
'In the Module
Declare Function PlaySound Lib "winmm.dll" _
Alias "PlaySoundA" (ByVal lpszName As String, _
ByVal hModule As Long, ByVal dwFlags As Long) As Long
'And this in the form
Dim LoadedFile As
playsound how to enhance (Solved) -
When I use the playsound function I have a problem. My program is doing nothing until the wave file is ended. Is it possible to make it kinda multitasking. So the music is playing and my program in running on. The music must only be playing in the background. Like the mediaplayer contr
Multiple Actions for one Command Button -
I am writing a program for a game. In the program I wanted to have 1 command button and everytime the command button was pressed an "X" would appear and a buzzer noise would sound. Here is a snippet of the code I wrote, but it is not working. I created a do/while loop to test
PlaySound C++ -
I started learning C++ recently, and I have to make my program play a WAV file.
In VB6 I would easily do this using the PlaySound API, but in C++ I need to include a header file, which header do i have to include to use the PlaySound API?
Thank you,
Sir Loin
Display images using timer event -
I'm stuck with the proper way to display images. My form gaot 9 images
image1 to image 9. I want to display only four images initially in the following order with a timer delay but don't get it right. Please help. Never sed timer before
Private Sub Timer1_Timer()
'===deal one c
looping a wav (should be easy 4 u mart people) -
how do you loop a wav file in an application.
http://www.newgrounds.com bored?
edit: say for instance
Private Const SND_APPLICATION = &H80 ' look for application specific association
Private Const SND_ALIAS = &H10000 ' name is a WIN.INI [sounds] en
Sound Problem -
Here's my problem.
I have a program that I'm creating that needs to be able to play two sound files at the same time.
One as background music, preverably mp3 or midi,
and the other as a sound effect, wav.
I have code that was supposed to allow me to play wavs on top of othe
Asynchronous sounds... -
I am using the following code:
Code:
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Const SND_ASYNC As Long = &H1
Public Sub Command1_Click()
P
PlaySoundA -
Code:
Private Const SND_ASYNC = &H1 ' play asynchronously
Private Const SND_FILENAME = &H20000 ' name is a file name
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Lo
playing sounds PROBLEMS -
i have a sound module
this is it -
Option Explicit
Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" _
(ByVal lpsz As String, ByVal hModule As Long, ByVal z As Long) As Long
to play the sound the command is A = PlaySound("path&quo
'h' - 'e'- on hockey stick - and a 'p' -
WHen I use this to play a .wav it stops the actions in the form, how could I make the .wav play, and still have the stuff in the form move?
Option Explicit
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal h
PlaySound quietly -
Why does PlaySound play sounds more quieltly than if you play them in Media Player.
I've got Homer Simpsom commenting on user ability in one of my programs and I want him to be heard.
Hours and Playsound -
Ok i have a label displaying the time and refreshing...i was wondering..
how would i make my program play a sound using the PlaySound API call when the time reaches x o'clock (x being whatever hour it is).
Paysound Function - Stopping a sound -
Hey all.
I need some help on stopping a sound from playing (pausing it) in a VB6.0 project.
So far, i've got the sound playing with the "Playsound" function. This is pretty much how i declared it :
Code:
Private Const SND_APPLICATION = &H80 ' look
Gridbox 4x4 Grid Game -
hey i am trying to get this to work, but it doesn't seem to be working, may someone help me out with this, be a great help i'm trying to make it all work, but won't succeed
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case
Stopping a WAV -
Hi everyone,
I used the following proc to play a WAV file (which resides in a res file):
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Const SND_ASYNC =
[2005] Simple play sound issue -
Hi,
Im using some simple code that i found on here to play a wav file from a file location within my project.
I dont get an error, but instead of my sound playing i just get the windows 'beep'. Please could someone tell me whats wrong with my code?
Code:
Public Const SND
Play .wav without knowing exact location -
How can you play a .wav without knowing the exact location of it,
i already know about....
PlaySound "C:\welcome.wav", 0&, SND_ASYNC Or SND_NODEFAULT
but what if you don't know the exact directory of the sound file?
can't you do something like
PlaySound "
what's wrong whit the msg box -
Hi all, i put these lines of code in a module,it shows the alphabet at random and when it shows the last letters(the 26th) there's a msg box that ask "Do you want to play again?"if you press no it quits whit the sound "Bye" and there's my problem When i click Yes No
loging the text typed in your txtPassword -
loging the text typed in your txtPassword?
I have made a password program, but i want to know if other people are using my computer while im away, or gone out some where, so i want to log what keys are press while i have my program running.
Code:
Option Explicit
Dim intCo
Stop Sound -
I have this in my code for a sound file
PlaySound "C:\WINDOWS\MEDIA\TADA.WAV", ByVal 0&, SND_FILENAME Or SND_ASYNC
is there some way that I can stop the sound? like
StopSound "C:\WINDOWS\MEDIA\TADA.WAV", ByVal 0&, SND_FILENAME Or SND_ASYNC
that
Using VB resources with API -
I'm actually wondering on how I could make sounds fit into the exe file of VB progs : I thought I could use the resource system, but I have now another problem: How could I access this resources with api , like PlaySound, or MsgboxIndirect(for the Icon), knowing the Res ID (101.. in my