]> git.tuebingen.mpg.de Git - paraslash.git/commit
unify aac and mp3 audio format handlers
authorAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 19:18:34 +0000 (20:18 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 19:18:34 +0000 (20:18 +0100)
commit075a9c88085a4925bcb44857de3d025aa3cdd398
tree675bda2e0d6fc5dab07004da881727fbb3196237
parent50c9de2ed8746a83002f51e74eae7b0378e1785e
unify aac and mp3 audio format handlers

This makes the mp3 audio format handler use a chunk table just like
m4a and ogg vorbis already do. Moreover, the aac and mp3 audio format
handlers now have identical read_chunk and reposition_stream handlers.

Next step is to tweak the ogg vorbis audio format handler so that
it also fits into this scheme. In the end, this allows to move
read_chunk() and reposition_stream() from the audio format handlers
one layer up to the virtual streaming system and to kill the function
pointers in struct audio_format.

The advantage of this change that it avoids duplicated/similar code, and
that new audio format handlers can added easier.
aac_afh.c
mp3_afh.c