Tuesday, January 12, 2016
Ask, how to play music in .wav format on SmartPhone or PPC it? Why not do it with PlaySound
Ask, how to play music in .wav format on SmartPhone or PPC? I did not respond with the PlaySound function to play that way, not the wrong syntax, do not know, what is the reason ....
BOOL success = PlaySound (szPathTemp, NULL, SND_FILENAME | SND_SYNC);
for (int i = 0; i & lt; 10; i ++)
{
Sleep (4000);
i ++;
}
success = PlaySound (NULL, NULL, NULL);
Reply:
File path problems.
Reply:
I tried it, no problem that way
Reply:
The return value is the correct way
Reply:
The return value is true
Reply:
Audio format is not your problem? Same as the .wav format, its audio format is different, there is PCM and IMA ADPCM points, while former PlaySound seems only play!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment