Repository navigation
Some improvements to Cue handling - #1406
Conversation
b4ed28c to
b578c52
Compare
|
I suspect that #1397 will be fixed by this pull request. Can't say for sure because there's no Cue file attached to it. |
|
I only lightly reviewed but it looks sane. One part that that needs consideration is how .cue files are now added directly instead of magically substituted when another format with a matching filename is added. I do like adding the .cue directly but you probably need to keep and invert the "matching filename" logic to instead exclude the media file. Otherwise |
|
Yeah, I think the only way to correctly add a directory with Cue files is to
I checked Audacious source and they implement it in the same way. Also, am I right that playlist files (.pl, .m3u) don't need this special treatment? |
Hello. I opened this issue. |
|
I tried this on a directory with 100+ Cue files in different subdirs and it worked, so it's ready for review |
|
Hello,
Otherwise to get accurate seeks one would need to
What do you think? |
pgaskin
left a comment
There was a problem hiding this comment.
Seems fine to me. I only really looked at the scan logic, as I'm not qualified to test or review the cue stuff (and someone else has already tried it), and since the scanning works, the impact on other formats is minimal.
|
@flyingmutant rebase merge? |
2f36931 to
6d0cd8f
Compare
|
I am almost sure |
This comment explains its purpose well #1406 (comment) |
|
Sure:
This is not an elegant solution, but I don't know of a better one yet. My main goal was to remove the associated cue mechanism, because it's counter-intuitive (see commit message of a87da7e) |
If I have a folder with a bunch of music podcast MP3's + CUE files for them, and I just |
1. Multiple FILEs are now allowed. Multiple FILE directives with same file name are treated as different files. 2. Track numbers may not start at 1 and may not be sequential, but still must be ordered (this is just to make program simpler). Example: 3, 6, 7 - correct; 3, 2, 7 - incorrect; 1, 1 - incorrect.
PREGAP and POSTGAP directives tell how much silence (that is not present in the audio file) to add to the track. This definitely should be handled in input plugin instead of the parser.
When cue sheet is written for a lossy audio source, ip_duration may return an estimation. We shouldn't take it as end_offset.
Now Cue file can be added like `:add file.cue`
Imagine we have a directory with these files: test.cue test.wav cd.wav test.cue content: FILE "cd.wav" WAVE TRACK 01 AUDIO When we do `:add test.wav`, cd.wav is added to the library instead of test.wav. Obviously it wasn't user's intention. I think if the user wants to add a Cue file, then they would just write `:add test.cue`. This 'associated cue' mechanism seems obsolete.
|
mp3 files mentioned in cues will be added as cue items, standalone files will be added as standalone files. |
|
I am conflicted about changing the handling of |
|
There's been a misunderstanding. Everything works same as before except that cue files can be added directly now. Associated cue stuff was needed to not include same audio file twice (as standalone file and cue entry), now this is accomplished by reading FILE directives from cue and not adding these files the second time after they have been added as cue entries. This also allows to support cue files with multiple FILE directives, for example: |
|
Thanks a lot! |
https://build.opensuse.org/request/show/1394501 by user mia + anag_factory - Update to 2.13.0 * Set the minimum requested AAudio buffer capacity gh#cmus/cmus#1386 * Check for libavutil pkg-config gh#cmus/cmus#1388 * Add sort by duration gh#cmus/cmus#1440 * Respect scroll_offset setting when resizing window gh#cmus/cmus#1413 * Try to fallback to any plugin upon failure to init output plugin gh#cmus/cmus#1416 * PulseAudio bugfixes and APPLICATION_ID gh#cmus/cmus#1405 * ip/ffmpeg fixes and ffmpeg 8.0 support gh#cmus/cmus#1444 * CUE handling improvements and replaygain/genre support gh#cmus/cmus#1406 * Fix for missing Icecast streaming bitrate display. gh#cmus/cmus#1451 * op/mixer_alsa: alsamixer's volume scale; setting mixer control like aplay does it gh#cmus/cmus#1445 * ip/ffmpeg: fix seeking and
No description provided.