faacEncOpen()
Prototype
faacEncHandle FAACAPI faacEncOpen
(
unsigned long sampleRate,
unsigned int numChannels,
unsigned long *inputSamples,
unsigned long *maxOutputBytes
);
Description
Open and initialize one instance of the encoder.
Parameters
sampleRate
The samplerate of the encoder input data.
numChannels
The number of channels of the encoder input data.
inputSamples
Receives the total number of samples that should be fed to
faacEncEncode() in each call.
maxOutputBytes
Receives the maximum number of bytes that can be in the
output buffer after a call to faacEncEncode().
Return value
An initialized encoder handle. If anything goes wrong NULL is returned.