aboutsummaryrefslogtreecommitdiff
path: root/sound/adpcm.h
diff options
context:
space:
mode:
authorMatthew Hoops2009-01-27 11:46:54 +0000
committerMatthew Hoops2009-01-27 11:46:54 +0000
commit13552cce55f6ccd09ac5e83c8a7dc3f2101dfa73 (patch)
treed68fd26d9df8783855779a22dcc4f70ac55c757e /sound/adpcm.h
parent6ef26264f46b26a2d479d6de2a91cbb19f415cfe (diff)
downloadscummvm-rg350-13552cce55f6ccd09ac5e83c8a7dc3f2101dfa73.tar.gz
scummvm-rg350-13552cce55f6ccd09ac5e83c8a7dc3f2101dfa73.tar.bz2
scummvm-rg350-13552cce55f6ccd09ac5e83c8a7dc3f2101dfa73.zip
Add support for looping ADPCM sounds. I'm also adding decoding of the "standard" IMA ADPCM code (aka Intel DVI ADPCM). This is from Mohawk. ;)
svn-id: r36097
Diffstat (limited to 'sound/adpcm.h')
-rw-r--r--sound/adpcm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/adpcm.h b/sound/adpcm.h
index 72afdc6113..886897014b 100644
--- a/sound/adpcm.h
+++ b/sound/adpcm.h
@@ -45,7 +45,8 @@ enum typesADPCM {
kADPCMMS, // Microsoft ADPCM
kADPCMTinsel4, // 4-bit ADPCM used by the Tinsel engine
kADPCMTinsel6, // 6-bit ADPCM used by the Tinsel engine
- kADPCMTinsel8 // 8-bit ADPCM used by the Tinsel engine
+ kADPCMTinsel8, // 8-bit ADPCM used by the Tinsel engine
+ kADPCMIma // Standard IMA ADPCM
};
/**
@@ -59,6 +60,7 @@ enum typesADPCM {
* @param rate the sampling rate (default = 22050)
* @param channels the number of channels (default = 2)
* @param blockAlign block alignment ??? (default = 0)
+ * @param numLoop how many types the sounds should loop, 0 for infinite loop (default = 1)
* @return a new AudioStream, or NULL, if an error occured
*/
AudioStream *makeADPCMStream(
@@ -68,7 +70,8 @@ AudioStream *makeADPCMStream(
typesADPCM type,
int rate = 22050,
int channels = 2,
- uint32 blockAlign = 0);
+ uint32 blockAlign = 0,
+ uint numLoops = 1);
} // End of namespace Audio