• John Regan's avatar
    flac encoder: enable Ogg FLAC and Ogg chaining · 87fa6bca
    John Regan authored
    refactors GenerateOggSerial into a generic GenerateSerial
    utility, under the util lib.
    
    libFLAC may be encoded without Ogg support. If Ogg support is disabled,
    libFLAC will still export Ogg-related methods (like setting a serial
    number), and throw a runtime error when initializing an Ogg stream.
    
    GenerateOggSerial does not depend on libogg. Refactoring it into
    a generic GenerateSerial prevents having to add build-time checks
    for libogg within the FLAC encoder plugin.
    87fa6bca
OggEncoder.hxx 1.75 KB