You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] hiccups between tracks in playing cue+flac files. #600
some albums could have a few tracks that plays continuously. This is pretty common in classical music (for instance, Beethoven 5th Symphony, Rachmaninoff's Rhapsody on a Theme of Paganini ).
When having the single CD as a whole flac file and an accompanying cue file, cmus would have a tiny gap between the tracks.
To reproduce this problem, choose any music (for instance, Eagle's Hotel California) you have as a wav or flac file. Then test using the following cue file:
TITLE "Test"
PERFORMER "Eagles"
FILE "hotel_california.flac" WAVE
TRACK 01 AUDIO
TITLE "Test"
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "Test"
INDEX 01 00:01:00
TRACK 03 AUDIO
...
TRACK 57 AUDIO
TITLE "57"
INDEX 01 00:57:00
TRACK 58 AUDIO
TITLE "58"
INDEX 01 00:58:00
TRACK 59 AUDIO
TITLE "59"
INDEX 01 00:59:00
For each second there're high chances you'll hear a small gap in the music.
I've tested this with both flac and wav and the issue only occurs with the flac file so the problem is most likely in the flac plugin or the flac decoder itself.
changed the title [-][bug] hiccups between tracks in playing cue+wav/flac files.[/-][+][bug] hiccups between tracks in playing cue+flac files.[/+]on Jan 22, 2017
I tried to output the everything the cue plugin writes to a single file. flac and equivalent wav would have very different result.
sample
cat test/hotel.cue
TITLE "Test"
PERFORMER "Eagles"
FILE "hotel.wav" WAVE
TRACK 01 AUDIO
TITLE "Test"
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "Test"
INDEX 01 00:00:10
TRACK 03 AUDIO
TITLE "Test"
INDEX 01 00:00:20
compare to wav, the flac file:
first 36864 bytes are missing
then two files start to have identical data. but,
starting from 60380, a lot of redundant data copied from from wav location 55296
So the problem is, the flac plugin never have sample-accurate seek function implemented.
I'll file another bug. and link it to this one.
Activity
karlek commentedon Jan 10, 2017
Reproduced in both
cmus v2.7.1andcmus v2.8.0-rc0.Wang-Yue commentedon Jan 19, 2017
ping
mahkoh commentedon Jan 21, 2017
I've tested this with both flac and wav and the issue only occurs with the flac file so the problem is most likely in the flac plugin or the flac decoder itself.
mahkoh commentedon Jan 21, 2017
Also note that the new cue parser does not care about the type of audio file. You might want to test this with mp3 or opus files.
[-][bug] hiccups between tracks in playing cue+wav/flac files.[/-][+][bug] hiccups between tracks in playing cue+flac files.[/+]Wang-Yue commentedon Jan 22, 2017
confirmed this is a flac plugin bug.
wav plays fine.
I haven't tried mp3/opus yet, as I don't have those libs installed.
Wang-Yue commentedon Apr 7, 2017
is anyone interested in fixing this issue? I'm not familiar with libflac
Wang-Yue commentedon Apr 21, 2017
tried libmad with mp3 file. same issue. although not as obvious as flac. but has similar hiccups if listened carefully.
also tried ffmpeg. same issue with mp3 and flac file. wav plays fine.
Wang-Yue commentedon Apr 22, 2017
I tried to output the everything the cue plugin writes to a single file. flac and equivalent wav would have very different result.
sample
cat test/hotel.cue
TITLE "Test"
PERFORMER "Eagles"
FILE "hotel.wav" WAVE
TRACK 01 AUDIO
TITLE "Test"
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "Test"
INDEX 01 00:00:10
TRACK 03 AUDIO
TITLE "Test"
INDEX 01 00:00:20
compare to wav, the flac file:
then two files start to have identical data. but,
So the problem is, the flac plugin never have sample-accurate seek function implemented.
I'll file another bug. and link it to this one.
Wang-Yue commentedon Apr 22, 2017
fixed by #679 and #680.