Ecere SDK/eC Forums
http://www.ecere.com/forums/
Print view

声音播放soundplay
http://www.ecere.com/forums/viewtopic.php?f=30&t=47
Page 1 of 1
Author:  liqi98136 [ Wed Mar 10, 2010 9:28 am ]
Post subject:  声音播放soundplay

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");
}
}
Author:  jerome [ Wed Mar 17, 2010 6:32 pm ]
Post subject:  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
All times are UTC-05:00 Page 1 of 1