Menu
  • HOME
  • TAGS

Play a sound file in masm32 and to stop the other sound file at the same time [closed]

winapi,assembly,x86,masm32,playsound

Read the documentation. PlaySound function pszSound A string that specifies the sound to play. The maximum length, including the null terminator, is 256 characters. If this parameter is NULL, any currently playing waveform sound is stopped. To stop a non-waveform sound, specify SND_PURGE in the fdwSound parameter. ... fdwSound Flags...

play .wav file using c language

c,playsound

The string returned by fgets() contains the terminal newline. You'll need to remove that to get the filename. An easy way to do this is to use strchr() to locate the newline: while (fgets(addr, 1000, fw) != NULL) { char *nl = strchr(addr, '\n'); if (nl) *nl = 0; …...

Corona sdk : Play sound when main object hits an obstacle

audio,corona,playsound

because you seem so new to Corona I try to you just give you some advise and guides: first of all you should know how to detect collisions: Physics Body after that you should know how to handle Collision Events: Collision and Collision Detection and then you should know how...

Play multiple .wav files simultaniously with Naudio or Win API

c#,.net,naudio,playsound

Yes, you can do it with multiple instances of WaveOut (one for each stream), or you can do it with a single WaveOut and mix it yourself (e.g. with the MixingSampleProvider)

How to use the playsound function multiple times?

c++,winapi,playsound

The problem is the SND_ASYNC flag. It says that you want this call to return immediately and play the sound in background. If you do this in a loop, since it will return with the sound still playing, it will overlap with the next call and do nothing, because IIRC,...

Play a sound when UIImageView are inside a specific area

uiimageview,imageview,uipangesturerecognizer,playsound

I solved it like this: - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [[event allTouches] anyObject]; CGPoint touchLocation = [touch locationInView:self.view]; NSLog(@"%@", NSStringFromCGPoint(touchLocation)); [self.view bringSubviewToFront:imageView1]; if ([touch view] == imageView1) { imageView1.tag=0; if ((touchLocation.x >= 340 && touchLocation.x <= 420) && (touchLocation.y >= 185 && touchLocation.y <= 265)) { NSLog(@"head");...

How to compile a c++ console application which uses the PlaySound function?

c++,compilation,playsound

The reason is most likely the location of the sound file relative to the directory the .exe is ran in by the VS (doesn't have to be the same directory the executable resides in). In this case, try copying the sound file to the .exe file's directory.