Displaying 3 results from an estimated 3 matches for "initializeencod".
Did you mean:
initializeencoder
2011 May 24
3
Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?
...ide 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.
Regards.
David...
2011 May 24
0
Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?
...then you could implement a FIFO.
You would need a semaphore to keep track of the decoder's progress,
and multithreaded coding. The decoder would pause, whenever the FIFO
gets full, until the encoder empties out the samples so far.
It's also possible that you have made a mistake in InitializeEncoder
() where the new file format does not match the incoming Buffer blocks.
Brian Willoughby
Sound Consulting
On May 24, 2011, at 10:16, David Troendle wrote:
> I am getting large, corrupted native FLAC files when trying to call
> the encoder from inside the decoder. The metadata in the...
2011 May 24
3
Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?
...m?), then you could implement a FIFO.
You would need a semaphore to keep track of the decoder's progress, and
multithreaded coding. The decoder would pause, whenever the FIFO gets full,
until the encoder empties out the samples so far.
It's also possible that you have made a mistake in InitializeEncoder
() where the new file format does not match the incoming Buffer blocks.
Brian Willoughby
Sound Consulting