Support and General Use > Audio Playback, Database and Playlists
Playlist insert order
cc:
I was trying to work out the order tracks get put into playlists when you do inserts and I'm stuck - either I don't understand the rules or there are bugs.
I made 3 directories with 3 songs in each: dir A (songs 1-3), dir B (4-6) and dir C (7-9).
If from stopped I do: Insert on dir A, insert dir B, insert dir C, I end up with a playlist of:
1 4 5 6 7 8 9 2 3
is that the desired behaviour? I was expecting 123456789. I guess what is happening is the first insert (from stopped) doesn't set the last insert position (last_insert_pos) to the end.
Similarly if I use Insert Last, like this (from stopped): Insert dir A, "Insert Last" dir B, insert dir C, I get:
1 7 8 9 2 3 4 5 6
(again I expected 123456789)
Using insert next is the most confusing: Insert dir A, "Insert Next" dir B, insert dir C, gives:
1 4 7 8 9 5 6 2 3
So the insert C files end up in the middle of the files added by the "insert next".
(this is with r14913-070930 on an E200)
Any ideas?
Llorean:
When you insert the first list, so that playback starts, the "insert point" is placed immediately after the now playing song.
When you "Insert last", the file is obviously placed "Last", the end of the playlist. This doesn't move the insert point, because there's never any need to move it to "Last" since the "Insert Last" function will always get you there. "Insert Next" inserts after the currently playing song. This *should* set the insert point to the last inserted song, but it sounds like that's failing. "Insert" just inserts at the insert point.
If you think about how the three interact, you should see that it offers a lot of flexibility, and will behave consistently assuming you know what they do. And I do believe the labels are consistent with what they do. The list with "Insert Next" then "Insert" should've been the same as your Insert-Insert list though, I believe, so it sounds like there is a small bug there.
Basically, the "Insert Point" should always be after the last Inserted or Insert Next-ed file.
cc:
Thanks, that makes sense now!
So the functionality is: "'Insert' adds either after the current track or after the previous 'Insert Next' or 'Insert' (unless the previous 'insert' was the first from stopped), but not after the previous 'Insert Last'".
Wouldn't: "'Insert' adds after the current track or the previous insertion" - be a lot simpler?
(I am thinking about updating the playlist manual section so that is why I think about how to explain things).
Llorean:
There's no reason to ever have it insert after the last "Insert Last" though, since having the insert point at the end of the list doesn't allow you to do anything extra.
cc:
Yes, I can see that, I just think always moving the pointer would be easier to understand (and easier to code - maybe a good way to fix the bug above?).
The most confusing one (to me) is not moving it for the first insert while stopped. If you did move it you could just use "Insert Next" to get the current functionality, and not have to remember/explain that insert when stopped is a special case for the pointer movement.
Navigation
[0] Message Index
[#] Next page
Go to full version