scummvm/scummvm — pull request #341 by bluegr (2013-06-07 19:15:07+00:00)
Title: VIDEO: Add an over-ridable wrapper for the AVI audio track handler

This is an alternative way to implement the changes suggested in
PR #340, which avoids code duplication of common code at the
engine level.

This is based on a suggestion made by clone2727, so the original
idea belongs to him.
Engines can now override the common AVI audio track handler with a
custom one. This is needed for the Z-Engine AVI videos, since they
use a custom audio decoder that is only used in the two Z-Engine
games, and has its own fake AVI audio format (17). This clashes with
the MS IMA ADPCM format, and therefore shouldn't pollute the common
AVI video decoder code. The addition of this over-ridable method
allows the Z-Engine to add its own custom AVI decoder while avoiding
code duplication.