summaryrefslogtreecommitdiffstats
path: root/adpcm.h
diff options
context:
space:
mode:
authormelanson <melanson@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-01 20:04:54 +0000
committermelanson <melanson@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-01 20:04:54 +0000
commit9505de02504cf9d3ce28425f615533eafd4d4fc1 (patch)
treecd0ca0bf93e2f6cbcdb48ff41fa7b80b6c5d5d13 /adpcm.h
parent33089e2179a8ea2b1547608af64ba4994adf70c6 (diff)
downloadmpv-9505de02504cf9d3ce28425f615533eafd4d4fc1.tar.bz2
mpv-9505de02504cf9d3ce28425f615533eafd4d4fc1.tar.xz
added initial support for format 0x61 ADPCM (sounds good, but still pops)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3934 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'adpcm.h')
-rw-r--r--adpcm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/adpcm.h b/adpcm.h
index d20dbc5717..939f7656b6 100644
--- a/adpcm.h
+++ b/adpcm.h
@@ -10,6 +10,11 @@
#define MS_ADPCM_SAMPLES_PER_BLOCK \
((sh_audio->wf->nBlockAlign - MS_ADPCM_PREAMBLE_SIZE) * 2)
+#define FOX61_ADPCM_PREAMBLE_SIZE 4
+#define FOX61_ADPCM_BLOCK_SIZE 0x200
+#define FOX61_ADPCM_SAMPLES_PER_BLOCK \
+ (((FOX61_ADPCM_BLOCK_SIZE - FOX61_ADPCM_PREAMBLE_SIZE) * 2) + 1)
+
// pretend there's such a thing as mono for this format
#define FOX62_ADPCM_PREAMBLE_SIZE 8
#define FOX62_ADPCM_BLOCK_SIZE 0x400
@@ -20,7 +25,7 @@ int ima_adpcm_decode_block(unsigned short *output, unsigned char *input,
int channels);
int ms_adpcm_decode_block(unsigned short *output, unsigned char *input,
int channels, int block_size);
+int fox61_adpcm_decode_block(unsigned short *output, unsigned char *input);
int fox62_adpcm_decode_block(unsigned short *output, unsigned char *input,
int channels);
-
#endif