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...
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; …...
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...
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)
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,...
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");...
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.