import "ecere"
#include "ec_for_win32.h"
#include "mmsystem.h"
class Test :Application
{
void Main()
{
PlaySound("DOG.wav", null, null/*SND_FILENAME | SND_ASYNC*/);
system("pause");
}
}
声音播放soundplay
声音播放soundplay
- Attachments
-
- soundtest.rar
- (8.97 KiB) Downloaded 4676 times
Re: 声音播放soundplay
You might also want to take a look at the 'WavPlayer' sample in sdk/samples/audio
It uses the small cross-platform (so far Windows (DirectSound)/Linux (ALSA)) audio system which can be found in sdk/extras/audio
Cheers,
Jerome
It uses the small cross-platform (so far Windows (DirectSound)/Linux (ALSA)) audio system which can be found in sdk/extras/audio
Cheers,
Jerome