From 49e67bc8566e8c5017b931837792a648cb0048c2 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 7 Dec 2015 23:49:44 +0800 Subject: Add RIFF wave format support. Update documentation. --- doc/SMELTdoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/SMELTdoc b/doc/SMELTdoc index 2f6bdd2..4bbc7a3 100644 --- a/doc/SMELTdoc +++ b/doc/SMELTdoc @@ -158,10 +158,13 @@ float smGetTime() [core/FPS] Gets the time in milliseconds since the call to smInit(). SMSFX smSFXLoad(const char *path) [core/SFX] -Loads a sound file from the given path. Only ogg files are supported. +Loads a sound file from the given path. Only ogg and wav files are supported. +Further more, due to the restrictions of OpenAL, only 8/16bit mono/stereo formats +are supported. SMSFX smSFXLoadFromMemory(const char *ptr,DWORD size) [core/SFX] -Loads a sound file from the given memory block. Only ogg files are supported. +Loads a sound file from the given memory block. Limitations are the same to that +of smSFXLoad. SMCHN smSFXPlay(SMSFX fx,int vol=100,int pan=0,float pitch=1.,bool loop=0) [core/SFX] @@ -170,7 +173,7 @@ A channel is generated and can be used to control the playing of the SFX. The channel is valid until it stops. Volume should be 0~100. Panning should be -100~100. -The values would be clamped to the range given above. +The values will be clamped to the range given above. float smSFXGetLengthf(SMSFX fx) [core/SFX] Gets the sound length in seconds. -- cgit v1.2.3