[FFmpeg-devel] [PATCH] Funcom ISS playback

Stefan Gehrer stefan.gehrer
Sat Jan 17 14:42:20 CET 2009


Michael Niedermayer wrote:
> On Sat, Jan 17, 2009 at 09:30:13AM +0100, Stefan Gehrer wrote:
>> Michael Niedermayer wrote:
> [...]
>>>> +        while (src < buf + buf_size) {
>>>> +
>>>> +            if (st) {
>>>> +                *samples++ = adpcm_ima_expand_nibble(&c->status[0],
>>>> +                    src[0] >> 4  , 3);
>>>> +                *samples++ = adpcm_ima_expand_nibble(&c->status[1],
>>>> +                    src[0] & 0x0F, 3);
>>>> +            } else {
>>>> +                *samples++ = adpcm_ima_expand_nibble(&c->status[0],
>>>> +                    src[0] & 0x0F  , 3);
>>>> +                *samples++ = adpcm_ima_expand_nibble(&c->status[0],
>>>> +                    src[0] >> 4, 3);
>>>> +            }
>>> are you ure stereo is not R<->L ? would be more consistent i it is
>> I rely on the information here from 
>> http://wiki.multimedia.cx/index.php?title=FunCom_ISS
>> And I think I could not tell from the samples at hand what is meant to
>> be left and what right.
> 
> maybe the author of "http://wiki.multimedia.cx/index.php?title=FunCom_ISS"
> could clarify it?

The original version of that page by user Dashcloud had some code
and this note:

"Note that LOWER nibble is processed first for mono sound while for 
stereo  sound HIGHER nibble corresponds to LEFT channel."

Both code and annotation come from Valery V. Anisimovsky,
who seems to be the Multimedia Mike of Russia at least
when talking about Game Formats :)
http://anxsoftware.boom.ru/
you can download the documentation here: http://www.wotsit.org/list.asp?fc=9

Stefan





More information about the ffmpeg-devel mailing list