I added a wav file to my Windows Mobile app and I want to use MobilePlaySound in CoreDll.dll to play it.
The fileName is one of its parameters:
MobilePlaySound(fileName, IntPtr.Zero, (int)(Flags.SND_ASYNC | Flags.SND_FILENAME));
I create a new folder 'sound', add 'start.wav' to the project and set its property 'Build Action' to 'Emb...
i try to play a music file in my coding, but failed. i have my music file in the same folder which save .cpp file.
can someone help me?
my code is:
#include <iostream>
#include <windows.h>
int main() {
PlaySound("kenny g.WAV", NULL, SND_ASYNC);
}
...
Hi, i'm trying to play mp3 files using the SoundPlaySync function. ( Mp3 playing was not supported in windows mobile 5-).
I narrowed down the problem - Even when i try playing .wav files, using playsound ( with a sync flag ), and then try to play them using SndPlaySync, SndPlaySync takes more than double the time to react.
( which caus...
Hi.
How can I set iPhone to vibrate while playing the sound.
The code I use plays the sound firts and then vibrates or vice-versa.
Thanks
...
I'm trying to embed and then play back a .wav file in a C++/CLI app but all the examples I've seen which use PlaySound are in VB. I can't see how to get froma Stream^ to the LPCSTR which PlaySound requires:
System::IO::Stream^ s = Assembly::GetExecutingAssembly()->GetManifestResourceStream ("Ping.wav");
LPCSTR buf = s->????;
PlaySound...