Displaying 2 results from an estimated 2 matches for "m_haveencoder".
2011 May 24
3
Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?
...encoder from inside a libFLAC decoder write
callback supported? The encoder is initialized on the first write callback.
Environment is Win 7 Ult, 64-bit, VS 2008, libFLAC 1.2.1.
Here is some context. The static callback calls the instance callback.
Encoder is initialized on line with "m_HaveEncoder = InitializeEncoder();".
Samples are submitted to the encoder on line with "FLAC__bool OK =
FLAC__stream_encoder_process(m_Encoder, Buffer, Blocksize);".
I have a version that decodes to a WAV file and then re-encodes the WAV
file, but would like to avoid all that I/O.
Regard...
2011 May 24
0
Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?
...t;
> Is initializing and calling an encoder from inside a libFLAC
> decoder write callback supported? The encoder is initialized on
> the first write callback.
>
> Here is some context. The static callback calls the instance
> callback. Encoder is initialized on line with ?m_HaveEncoder =
> InitializeEncoder();?. Samples are submitted to the encoder on
> line with ?FLAC__bool OK = FLAC__stream_encoder_process(m_Encoder,
> Buffer, Blocksize);?.
>
> I have a version that decodes to a WAV file and then re-encodes the
> WAV file, but would like to avoid all...