Hello Tristam,
The problem is that I already have a set of music databases which
have many AAC files (true enough because all of these databases comes
from iTunes).
Looking around the web, I found this project:
http://code.google.com/p/quodlibet/
Maybe there is the answer to all riddles :) I'm thinking in using a
part of this Quod Libet project, which uses Mutagen, to play AAC
files.
The issue with licensing is that up until recently, FFmpeg only
supported AAC decoding by reusing parts of FAAD, which is GPL
licensed. If AVbin were built with this support enabled, AVbin would
not be redistributable except under the GPL; and pyglet cannot be
redistributed if it links to a GPL library without itself being GPL
(it is currently BSD, to allow for commercial use and wider 3rd party
library support).
In summary, it's the FAAD license that conflicts with pyglet, nothing
to do with the MPEG standard. I believe recent contributions to
FFmpeg have provided it with an LGPL (pyglet-compatible) AAC decoder,
which should be available in the next AVbin/pyglet release.
Note that a similar issue exists for decoding AC3; and similarly, I
believe an LGPL decoder has been added recently.
Cheers
Alex.