• Max Kellermann's avatar
    decoder/Bridge: truncate last chunk at the exact end_time · 986ec877
    Max Kellermann authored
    Instead of passing whole chunks to the MusicPipe and checking the
    end_time after each chunk, truncate the last chunk if it would exceed
    the end_time.  This requires keeping track of the absolute PCM frame
    number.
    
    This fixes a problem with gapless CUE song transitions: a small part
    of the following song was always played twice.
    
    Closes #113
    986ec877
Bridge.cxx 13.4 KB