[Flac-dev] Can a libFLAC encoder be initialize and called from inside a libFLAC decoder callback?

Paul Davis paul at linuxaudiosystems.com
Tue May 24 12:22:17 PDT 2011


On Tue, May 24, 2011 at 3:11 PM, David Troendle <david at troendle.org> wrote:
> Thanks for the tip, Brian.  I did have a version that does everything in
> memory, but only had enough memory to get six threads going.  (Although my
> system has 16GB, I have not taken the time to create 64-bit libraries for
> wxWidgets, TagLib, libFLAC, etc.)
>
> Based on the direction you are pointing me in, I assume that encoding from
> within the decoder is not permitted.
>
> I really like your idea of the FIFO, and will probably go in that direction.
> What do you think of implementing the FIFO via a pipe?  That might simplify
> the implementation.

Pipes on *nix systems are generally not very big, so be careful.
Historically they were limited to about 5kB.


More information about the Flac-dev mailing list