Home > Software engineering >  MFC Playsound function how to only make audio playback again?
MFC Playsound function how to only make audio playback again?

Time:10-13

I made the MFC calculator VS2010 want to add a with background music and voice prompt function at the same time,
Playback of audio using Playsound function,
As follows: PlaySound (MAKEINTRESOURCE (IDR_WAVE2), NULL, SND_RESOURCE | SND_LOOP | SND_ASYNC);
Background music looping is very good,
But not looping button prompt (11111111111111 o T T... )
Methods using the online either useless or the background music also together to stop the T T,,,
Seek a great god advice!!

CodePudding user response:

PlaySound (MAKEINTRESOURCE (IDR_WAVE2), NULL, SND_RESOURCE);

CodePudding user response:

PlaySound (MAKEINTRESOURCE (IDR_WAVE2), NULL, SND_RESOURCE | SND_ASYNC);

CodePudding user response:

PlaySound with mixing, suggest using McIsendstring

CodePudding user response:

Don't SND_LOOP

CodePudding user response:

PlaySound should not support more than play wav files at the same time,
Try the McISendString ~

CodePudding user response:

PlaySound should not support more than play wav files at the same time,
Try the McISendString
  • Related