xbmc/xbmc — pull request #983 by anssih (2012-05-19 20:45:49+00:00)
Title: added: AEStreamFactory wrapper for checking MakeStream parameters

Currently the audio engines do not validate (except by asserts) the
MakeStream() parameters. Add a wrapper function in a new AEStreamFactory
class for MakeStream() (and FreeStream(), for consistency) which checks
that the sample rate and channel map are not invalid and that encoded
sample rate is provided when needed.

The MakeStream() and FreeStream() methods of the AE interface are made
private so that they can only be called through AEStreamFactory.

A new file is added, win/osx will need an update.