HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: kerpondile on 2009-07-27 11:51:17

Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2009-07-27 11:51:17
foo_queuecontents enables the user to edit and view queue contents through an ui element. Both the Default User Interface (DUI) and Columns User Interface (CUI/uie) are supported. As a legacy option, queue contents can also be viewed and edited by a special queue playlist, which is updated automatically with queue contents.

Newest version: 0.5.1 / 2012-03-11

For more information, please see the Wiki page (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components/Queue_Contents_Editor_(foo_queuecontents)).

Links:

Download the latest version: Official component repository (http://www.foobar2000.org/components/view/foo_queuecontents)

Source code: github (https://github.com/ssalonen/foo_queuecontents) (Please see the license files)


Please add any comments, I appreciate them!


Sami Salonen
Title: foo_queuecontents - View and edit queue
Post by: Horst Fux on 2009-07-27 12:09:22
This is just awesome, since foo_queuemanager doesn't work anymore I was looking for a nice alternative.

Great plugin, keep on working!

The only sad thing is, that I had a party some days ago and you released this plugin but now.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2009-07-27 13:42:49
Thank you! I appreciate it. The main reason I made this component was that there's really no plugin that does the job properly.

Please tell me if you find any bugs or have improvement suggestions and I see what I can do.

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: s33m33 on 2009-07-27 14:00:26
Used foo_pqview till now, but it had limitations.

Thank you for your hard work compiling a much required component. Does what it says.

Will have fun playing around with foo_queuecontents.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2009-07-27 17:04:28
Reordering in Queue Playlist causes that numbers in column "playing" disappear and so foobar forgets wich playlist and wich playlist entry the queued item belong.


Edit:
If that is by design to make the component work so i must say that this is the craziest component ever: it destroys origin functionality of the queue to force some features the queue wasn't designed for.
Title: foo_queuecontents - View and edit queue
Post by: Yotsuya on 2009-07-27 17:14:47
Reordering in Queue Playlist causes that numbers in column "playing" disappear and so foobar forgets wich playlist and wich playlist entry the queued item belong.

I suppose this is the same bug, but if you rearrange items on the queue playlist the value of %queue_index% for the tracks on their original playlist are destroyed. Also, it would be nice if settings such as playlist name for the queue were accessable from a File> Preferences> Tools submenu.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2009-07-27 20:27:36
Playlist name can be set in the 'Advanced'->Display -> 'Queue Contents Editor playlist name'  (should change this to something more descriptive...)

I will look at the reordering thing but I think it was the only way I could think of to implement that feature
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2009-07-28 06:46:02
Reordering in Queue Playlist causes that numbers in column "playing" disappear and so foobar forgets wich playlist and wich playlist entry the queued item belong.


Edit:
If that is by design to make the component work so i must say that this is the craziest component ever: it destroys origin functionality of the queue to force some features the queue wasn't designed for.


I found the correct way to do the queue reordering. Problem is now fixed in the next version 0.1.1. Component can be downloaded from the same URL http://sites.google.com/site/salskisite/fo...?attredirects=0 (http://sites.google.com/site/salskisite/foo_queuecontents/foo_queuecontents.zip?attredirects=0) or using the homepage.

This should also fix the issue Yotsuya reported.

Please, tell me how it works for you.

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: durch on 2009-07-28 12:25:42
Is this the same Columns UI does with "View/Columns playlist/Activate now playing" command?
Title: foo_queuecontents - View and edit queue
Post by: zygzak on 2009-07-28 12:53:28
It would be possible to save queue between Foobars2000 sessions?
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2009-07-28 18:37:59
Is this the same Columns UI does with "View/Columns playlist/Activate now playing" command?


I haven't used Columns UI in a while so I can't be really sure. What does that do?

This component shows the queue contents in a separate playlist. Playlist can be edited and reordered and the changes are automatically reflected on the queue too.

It would be possible to save queue between Foobars2000 sessions?


It sure is possible. However, I think it outside the scope of this component (?). What do others think?
Title: foo_queuecontents - View and edit queue
Post by: Xezzy on 2009-07-28 18:50:48
Except if you dont mind changing name to foo_queuemanager (or something more relevant) or if there is another plugin with similar functions.

Personally, I would love to see plugin that is all-about managing queues, as someone mentioned, its very usefull at parties.
Title: foo_queuecontents - View and edit queue
Post by: mixcherry on 2009-07-28 19:01:49
It would be possible to save queue between Foobars2000 sessions?


It sure is possible. However, I think it outside the scope of this component (?). What do others think?
[/quote]
I believe that the queue is not saved by design (It's Not a Bug, It's a Feature! ). The queue itself was discussed in different (long and boring) topic, and AFAIR core developer(s) stated there that the queue should remain plain and simple. I think that is the reason you had to do 'tricks' in your code responsible for changing queue items' order - because the queue is not intended to support such operations.


In other words, if you improve your component more and more, what will be the difference between using it, and using simple playlist with 'Remove After Playing' plugin (I remember that such thing existed somewhere)? You can already quickly send tracks to another playlist (eg. named 'Party' or 'Queue') using context-menu command.

I don't want to sound discouraging here, as I believe that great number of users don't agree with core developers and were looking for component such as yours.

Good luck
Title: foo_queuecontents - View and edit queue
Post by: Xezzy on 2009-07-28 19:09:36
Uhmm, good point mixcherry.
Title: foo_queuecontents - View and edit queue
Post by: Anas on 2009-07-28 19:29:05
Thank you very much, kerpondile. This is much requested and, at least for me, needed functionality. Excellent work.

Component works flawlessly for me, by the way. Just one small request: It would be nice to have the lockname to be a bit more "appealing", because I'm displaying it next to the playlist's name.
Title: foo_queuecontents - View and edit queue
Post by: zygzak on 2009-07-28 19:29:34
My point is: if we have queue that looks like playlist, is managed like playlist, it would be nice if it saves automatically when foobar2000 is closed as other playlist do.
If it will be done by foo_evilqueuesave, no problem for me.
Title: foo_queuecontents - View and edit queue
Post by: mixcherry on 2009-07-28 19:45:07
My point is: if we have queue that looks like playlist, is managed like playlist... then why don't we just use playlist? Ohh, nevermind, I don't want to start flame war...

I bet that the very next request from some user would be 'not to flush whole playback queue' on playing track from outside the queue while it's being processed. Let alone implementing the 'simple' thing of saving queue's contents on exit.

I think that kerpondile made a very good foundation to create some kind of 'Advanced Queue' component, which would not base on core's (rather limited) functionality. Maybe it should be some kind of locked playlist which would disappear when it's empty (and reappear when someone adds track to it), and would automatically remove tracks from itself after playing them. Maybe for 'parties' it would have configurable options what users can and can't do with it (eg. allow/disallow to reorder, remove, etc.) And it would add command to context menu similar to the original queue. Maybe there could even be more than one queue!

Now, any 'improvement' to the original queue can lead to abuse of the core developer's intention, and I wouldn't be much surprised if it were banned for violating SDK license.
Title: foo_queuecontents - View and edit queue
Post by: Yotsuya on 2009-07-29 03:05:52
I'm posting to confirm the latest version fixes my previously stated issue with breaking %queue_index%, however I felt the need to point out that the Queue playlist doesnt honor any %queue_index% at all.

This component opens up some interesting uses for the playback queue but it needs to mature a bit. As for the whole "Foobar2000 best practices" debate, if you dont like the component dont use it. I'm always willing to explore new ways to manage my massive collection of music and nothing comes close to foobar on windows, mac, or linux.
Title: foo_queuecontents - View and edit queue
Post by: mixcherry on 2009-07-29 09:33:53
Where did I say I don't like this component? I'm using it right now  All I say is, the more this component is 'extending' core's queue possibilities, the closer it gets to normal (limited) playlist behavior. Whereas I'd like to see component that would start from being normal (locked) playlist and then be extended by new capabilities (like those that I mentioned in my previous post). I think that would be easier to program too, than hacking all core's queue restrictions. Anyways, I wish kerpondile all the best, because it is always good to see new potential in developers area
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2009-07-29 16:42:53
I am very aware that kerpondile surely put much effort in the development of this component. Also i am not interested to start a long and boring discussion about queues functionality.

But:

I hope i am allowed to mention that this component and all its praising is absurd. As mixcherry already said: All you can do with this component is possible without it - not in the sense of a workaround but in identical way if you use foo_utils. What is the long requested and needed functionality some people are talking about? Maybe you don't know foo_utils? Ok, now you know it! All the requests i read in this thread so far are realizable. Furthermore you don't have any restriction as you use a real playlist. You are not limited to 64 tracks and you also can choose playbackorder for your playlist. And if you like played track to be removed you can use foo_removeplayed

How far will the request concerning this new component go? mixcherry already bets that people will request to avoid flushback queue on starting another track manually. I bet that someone will request to start tracks inside of queue playlist manually or to avoid removal of played tracks. Such requests doesn't only mean ignorance of already existing funcionality but also confusion about the queue itself.

This component would only makes sense if and only if it wouldn't show the queue in a playlist but in a panel outside of the playlist view. So the queue would be recognizeable as queue.
Title: foo_queuecontents - View and edit queue
Post by: FavioD on 2009-07-29 18:39:00
thanks for this, very useful
Title: foo_queuecontents - View and edit queue
Post by: sPeziFisH on 2009-07-29 19:54:49
AFAIK the only thing that makes a queue interesting is that it gets focus if it is filled with 1+ tracks and after being processed the last non-queue-track gets focus back again. AFAIK there is no way to give any playlist this feature of priority or does it?

Sometimes things come to your mind and you feel the need to put certain tunes into the stack, exactly at that time, right between your movements, even changing order of this temporary-set can be seen..  A PJ knows what I mean, but his live is hard.
Title: foo_queuecontents - View and edit queue
Post by: durch on 2009-07-30 00:14:23
I agree it would be great if the queue would be a panel. Because I personally don't use the default UI, I'd prefer a Columns UI panel.

Own panel would give users well-proven Winamp-like queue functionality - a feature foobar2000 should have had right from the start IMO.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2009-07-30 08:17:17
I believe that the queue is not saved by design (It's Not a Bug, It's a Feature!  ). The queue itself was discussed in different (long and boring) topic, and AFAIR core developer(s) stated there that the queue should remain plain and simple. I think that is the reason you had to do 'tricks' in your code responsible for changing queue items' order - because the queue is not intended to support such operations.


In other words, if you improve your component more and more, what will be the difference between using it, and using simple playlist with 'Remove After Playing' plugin (I remember that such thing existed somewhere)? You can already quickly send tracks to another playlist (eg. named 'Party' or 'Queue') using context-menu command.

I don't want to sound discouraging here, as I believe that great number of users don't agree with core developers and were looking for component such as yours.

Good luck


Yes, I understand your point and agree on some point. I believe users should be able to see and edit the queue and I think the only 'clean' way to do it (within the standard UI) is the playlist. I wanted to make this component a panel but I'm not that interested on foo_ui_columns etc. As far I know, it's not possible to create panels with current SDK.

I am very aware that kerpondile surely put much effort in the development of this component. Also i am not interested to start a long and boring discussion about queues functionality.

But:

I hope i am allowed to mention that this component and all its praising is absurd. As mixcherry already said: All you can do with this component is possible without it - not in the sense of a workaround but in identical way if you use foo_utils. What is the long requested and needed functionality some people are talking about? Maybe you don't know foo_utils? Ok, now you know it! All the requests i read in this thread so far are realizable. Furthermore you don't have any restriction as you use a real playlist. You are not limited to 64 tracks and you also can choose playbackorder for your playlist. And if you like played track to be removed you can use foo_removeplayed

How far will the request concerning this new component go? mixcherry already bets that people will request to avoid flushback queue on starting another track manually. I bet that someone will request to start tracks inside of queue playlist manually or to avoid removal of played tracks. Such requests doesn't only mean ignorance of already existing funcionality but also confusion about the queue itself.

This component would only makes sense if and only if it wouldn't show the queue in a playlist but in a panel outside of the playlist view. So the queue would be recognizeable as queue.


I actually did not know about foo_utils. It seems to work very well. In an ideal situation my component would be a UI panel which could be placed where ever the user wants. Unfortunately this is not yet possible and the playlist seemed like the only way to it. However, after seeing how well foo_utils performs the same task, I'm wondering if my component is worth developing more.

I agree it would be great if the queue would be a panel. Because I personally don't use the default UI, I'd prefer a Columns UI panel.

Own panel would give users well-proven Winamp-like queue functionality - a feature foobar2000 should have had right from the start IMO.


I'm personally not interested in Columns UI and I think there's already some plugins to do this in Columns UI.


I never really had the intention to add 'queue save' and other extra features because it's not very wise using the current SDK. SDK has quite crude api for queue (maybe intentionally?) and therefore making the job not feasible/rewarding. This plugin works in its basic job and adding new features on top of foobar queue is not wise. I'd have to take totally different approach to this (as some of you have suggested) problem if I'd like to bring more features.

I personally am going to change to foo_utils + remove played combination because it gives me more control and achieves basically the same thing (more cleanly at code level). When foobar SDK will support the standard panels I'm willing to take a look at the situation again.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2009-07-30 15:02:42
Hello kerpondile,

my point wasn't only that foo_utils does the same job better but also that this job doesn't belong to queues functionality to override playback order during playback and to jump from playlist to playlist. And this functionality seemed to be forgotten or confused by many users - this confusion is forced by the fact that a playlist is used to mirror the content of the queue.

It would be a great pity for you after your effort to stop development before doing the last step. Sure, it is not possible to develop your component as ui element - but why don't you choose a free-floating pop-up window (callable by Mainmenu -> View->Playback Queue)? That would also be a clean solution and that is the way winamp users handle their queue since years without feeling the need to have the "Jump to File" window integrated into UI.
Title: foo_queuecontents - View and edit queue
Post by: zygzak on 2009-07-30 17:28:38
Kerpondile, there a lot of users who use your plugin or used before foo_pqview and are satisfied with queue in a playlist. I can say for myself that i dont want any panel or additional window (!?), nor any bashing against "winamp users".
Queue in playlist, as a concept,  works really good. (only lacks saving of queue, but this seems a Foobar Way problem, which simply idea of saving it, in playlist or not, treats like a Greater Evil).
Thank you for your component, in present state.
Title: foo_queuecontents - View and edit queue
Post by: odyssey on 2009-08-14 17:52:11
Kerpondile, I hope you have not abandoned this component. I disagree that it's entire functionality can be replaced by other components.

I however, think that maybe a separate window, like the one used for Playlist Search/Media Library Search to display and allow editing of queue would be more in place.

Personally I don't think it should have a panel, but that's just me  I like using the space for something more useful, as i'm just rarely using the queue.
Title: foo_queuecontents - View and edit queue
Post by: mixcherry on 2009-08-14 18:27:58
I like the idea. No messing with playlists, just plain window with queue contents. It could have option of auto-focus/show on Add-to-queue action. And I believe that when Default UI Elements API becomes public, it will not be to difficult to make panel version.
Title: foo_queuecontents - View and edit queue
Post by: AndyL on 2009-08-14 20:00:35
I've been waiting for something like this for a long time, many thanks for this plugin Kerpondile!
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2009-08-20 17:56:44
Kerpondile, I hope you have not abandoned this component. I disagree that it's entire functionality can be replaced by other components.

I however, think that maybe a separate window, like the one used for Playlist Search/Media Library Search to display and allow editing of queue would be more in place.

Personally I don't think it should have a panel, but that's just me  I like using the space for something more useful, as i'm just rarely using the queue.



I like the idea. No messing with playlists, just plain window with queue contents. It could have option of auto-focus/show on Add-to-queue action. And I believe that when Default UI Elements API becomes public, it will not be to difficult to make panel version.


Hi, I haven't abandoded the project but I think I will not develop a version with a separate window. Separate window requires some GUI coding which, I think, is quite nasty in c++. I have quite limited spare time on this project and would be just too much work.

I will update this component for newer SDK as they are released. If some day the panel support is added for standard ui I will look at the situation again.

And when it comes to new features, I will not create features that fight against the original function of the queue (saving queue between foobar sessions etc.). However, I might add features that are more subtle but still as useful. Someone suggested creating a separate component for "party playlists" and that was quite interesting. I might still create something like that some day if I find the time.

Thank you for all the comments and replies, I really appreciate them! Keep me posted if you find this component useful or if you have some other comments.

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: haazetzet on 2009-08-20 19:34:54
hey this is awesome. i just wanted to start a search thread with the funtions of this plugin. exactly what i wanted  thank you very much
Title: foo_queuecontents - View and edit queue
Post by: Stonefred on 2009-08-25 17:29:48
[...] I can say for myself that i dont want any panel or additional window (!?), nor any bashing against "winamp users". [...]


with columns ui and panel stack splitter one doesn't need foo_queuecontents to work as a panel. for example i just added a new ng playlist in PPS wich only shows the new queue playlist, this component creates. right now i'm trying to implement it a simple wsh panel, but i'm not sure if that's possible.

the only thing i'd wish is the ability to save queues over restarts of foobar. everything else the posters above me mentioned would be nice to have but for my part not really nescessary.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2009-08-25 17:39:28
And when it comes to new features, I will not create features that fight against the original function of the queue (saving queue between foobar sessions etc.).


the only thing i'd wish is the ability to save queues over restarts of foobar. everything else the posters above me mentioned would be nice to have but for my part not really nescessary.


Didn't you read the components authors posting? 
Title: foo_queuecontents - View and edit queue
Post by: Stonefred on 2009-08-25 17:48:32
i did! but his statement
Quote
Someone suggested creating a separate component for "party playlists" and that was quite interesting. I might still create something like that some day if I find the time.
was a bit suggestive to interpret ...
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2009-08-25 17:51:27
Yep, but then it wouldn't be the queue! 
Stonefred, please try to see that foobars playlist is not the same like the queue - so don't confuse the terms.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2009-08-25 18:19:29
A quick idea for a socalled party playlist:

1. It is a locked playlist
2. You can send tracks to it by context menu (means: hotkey or button is also possible)
3. Every played track is removed after being played
4. You can limit the maximum size of it (let's say: 40 Tracks)
5. You can set minimum size of it (let's say: 4 Tracks)
6. If minimum size is reached because no tracks was manually added then tracks are added automatically
7. These automatically added tracks are based on a query.
8. You can specify how many tracks should be added automatically (see point 4 and 5: no more than 40-4=36 tracks)
9. No more options

Title: foo_queuecontents - View and edit queue
Post by: odyssey on 2009-08-25 19:01:57
That sounds very much like the behavior of AlbumPlayer.

It would be nice with such feature in foobar2000 (but doesn't this belong to it's own thread?)

However an obvious problem with this is that anyone can still just go frenzy on it  A way to avoid this could be to time trigger when a new track may be queued, or make any queued track overwrite the last one until the last queue-entry is xx seconds/minutes old.

Also how would you prevent anyone from hooking it and just create another playlist?
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2009-08-25 19:53:30
(I am not sure what you mean exactly - please, don't write too much slang): "hooking", "frenzy"

However an obvious problem with this is that anyone can still just go frenzy on it  A way to avoid this could be to time trigger when a new track may be queued, or make any queued track overwrite the last one until the last queue-entry is xx seconds/minutes old.


As the party playlist would be a locked one you could force a playing track to be finished before the next one is starting. On the other side i would like to see a component without a ton of options. Edit: I think a limitation by number of tracks is really enough.


Also how would you prevent anyone from hooking it and just create another playlist?


Well, the best would be not to serve alcoholic drinks to the guests and to place a big text display uielement that warns in big letters the guest from doing so. One senseful option, that could be added to my list above could be: "Force playback of party playlist". Means: When a track from another playlist is finished then continue playback in party playlist. That would replicate a little bit queues functionality as the party playlist would automatically start after being filled. Furthermore the guests are allowed to start another track in another playlist and after this track the playback comes back to party playlist. I think there is nothing more you can do aside from being the dj the whole time at your own party.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-01-25 19:48:46
foo_queuecontents is an foobar2000 extension component mainly developed by me. It started as a modification of foo_locktest by foosion.


Just informing everyone here that I'm still alive!

As the new SDK is now out, with full UI-element support, I am thinking of reimplementing the component as a UI component. This will solve some of the issues some people were having and it allows more flexible use of the component.

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: s33m33 on 2010-01-25 20:17:20
@kerpondile

Please keep component as a playlist too.
It's quite handy in it's current form as well.
Title: foo_queuecontents - View and edit queue
Post by: stripe on 2010-01-26 02:44:45
Good to hear! Looking forward to new developments... I'd love to see it as a UI component.

(but the best thing, IMO, would be to combine it with foo_history, so that you could see the last x items played as well)
Title: foo_queuecontents - View and edit queue
Post by: bubi jackson on 2010-01-26 04:22:20
@kerpondile

Please keep component as a playlist too.
It's quite handy in it's current form as well.


+1

It's simple and easy to handle this way.
Title: foo_queuecontents - View and edit queue
Post by: freetochoose on 2010-01-26 11:40:47
I would like to try your component. But somehow I cannot connect to its homepage or download page. I am not sure if this site is blocked in China.
Is it possible for you to put the dll somewhere I can download? Perhaps post a ed2000 link or bit torrent? Thanks.

ftc
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-01-26 17:06:42
I wonder if this works for you:
http://dl.dropbox.com/u/2498950/foo_queuecontents.zip (http://dl.dropbox.com/u/2498950/foo_queuecontents.zip)


@kerpondile

Please keep component as a playlist too.
It's quite handy in it's current form as well.


+1

It's simple and easy to handle this way.


OK, I will keep the playlist functionality also .

I will have lots to research conserning the UI elements since such low level UI programming is new to me. But I guess the task is doable since the component is quite small.

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: electricprophet on 2010-01-26 17:12:31
an UI component would be awesome! keep up the good work!
Title: foo_queuecontents - View and edit queue
Post by: freetochoose on 2010-01-27 02:47:42
I wonder if this works for you:
http://dl.dropbox.com/u/2498950/foo_queuecontents.zip (http://dl.dropbox.com/u/2498950/foo_queuecontents.zip)

This works great. Thanks a lot.

ftc
Title: foo_queuecontents - View and edit queue
Post by: krzyszcz on 2010-02-24 19:43:02
Thx for working on the plugin

But in my opinion, some more work is still needed to make it functional...
Unless I'm doing something wrong, this "Queue playlist" is not really the playback queue. It only contains songs, that I add by choosing from context menu "Add to playback queue". But when I double-click e.g. the second song of particular album, playback is started and foobar plays this song and next the 3rd song of this album and then 4th, etc. During this playback, Queue playlist provided by your plugin remains blank.

The essence of queue is that it is a list of songs that will be played next, it is not a playlist, that I create using context menu option.

And - as it was mentioned in the thread - Columns UI panel functionality would be awesome.
Regards
Title: foo_queuecontents - View and edit queue
Post by: 2E7AH on 2010-02-24 19:49:00
You can use ELPlaylist as a panel: Bind it to your queue playlist and deactivate "follow active playlist"
You can also follow NowPlaying playlist, and the only drawback seems that it isn't easy customizable, but as a queue panel it can be great
Title: foo_queuecontents - View and edit queue
Post by: fbuser on 2010-02-24 20:04:19
But when I double-click e.g. the second song of particular album, playback is started and foobar plays this song and next the 3rd song of this album and then 4th, etc. During this playback, Queue playlist provided by your plugin remains blank.
Assuming you doube-click on a track of a playlist, the behaviour is absolutely correct. By double-clicking on a playlist the queue is flushed. You can see in that playlist, what will be played next.
Title: foo_queuecontents - View and edit queue
Post by: krzyszcz on 2010-02-24 20:07:18
You can use ELPlaylist as a panel: Bind it to your queue playlist and deactivate "follow active playlist"
You can also follow NowPlaying playlist, and the only drawback seems that it isn't easy customizable, but as a queue panel it can be great


Seems really cool, but it's still missing something: when I choose "add to playback queue" from the context menu, ElPlaylist remains the same. It cannot be modified by drag&drop too... It only shows e.g. contents of album that I chose to be played.
Title: foo_queuecontents - View and edit queue
Post by: Hitchhiker427 on 2010-02-24 20:14:27
Thx for working on the plugin

But in my opinion, some more work is still needed to make it functional...
Unless I'm doing something wrong, this "Queue playlist" is not really the playback queue. It only contains songs, that I add by choosing from context menu "Add to playback queue". But when I double-click e.g. the second song of particular album, playback is started and foobar plays this song and next the 3rd song of this album and then 4th, etc. During this playback, Queue playlist provided by your plugin remains blank.

The essence of queue is that it is a list of songs that will be played next, it is not a playlist, that I create using context menu option.

And - as it was mentioned in the thread - Columns UI panel functionality would be awesome.
Regards


Sorry, but you're mistaken.  The "Playback Queue" is specifically only those songs for which you select "add to playback queue" from the context menu.  It seems what you're looking for is a "Default" or "Now Playing" playlist, similar to what would be found in Winamp.  That's not possible with foobar2000, and is pretty pointless considering the extensive playlist options that foobar2000 provides. 

The "list of songs that will be played next", as you put it, is the playlist.  That's specifically what a playlist is, a "list of songs to be played".  You don't need a special component to display this.
Title: foo_queuecontents - View and edit queue
Post by: 2E7AH on 2010-02-24 20:23:03
when I choose "add to playback queue" from the context menu, ElPlaylist remains the same

you should select Queue as ELPlaylist playlist, and it will work
drag&drop isn't supported for queue, so if you want it just use normal playlist and pretend it's queue
Title: foo_queuecontents - View and edit queue
Post by: krzyszcz on 2010-02-24 20:38:34
Quote
The "list of songs that will be played next", as you put it, is the playlist. That's specifically what a playlist is, a "list of songs to be played". You don't need a special component to display this.

In playlists tab I have "My music", *Browser*, "Filter Results" (from Columns UI) and Queue (by foo_queuecontents) and none of them is a queue.

Queue is a list of all songs waiting to be played. And how can it be impossible with foobar, which is so configurable and has so many plugins available, while in Winamp it is an onboard functionality.

Quote
you should select Queue as ELPlaylist playlist, and it will work


Yes, but only for files, that I queued by context menu. And this is why it won't show all files that will be played next: e.g. I choose first song of an album to play and foobar (columns UI) will automatically play all songs of this album following this one. And then, maybe, files that I added by context menu. ElPlaylist, in this configuration, will show only those from context menu.

When I choose "Follow NowPlaying playlist" in ElPlaylist, on the other hand, my NowPlaying album is shown there, but I cannot add there files to queue, neither by context menu nor by drag&drop.

I need a combination of Queue (by foo_queuecontents) and NowPlaying playlist (by ElPlaylist) that would be able to show in a particular moment everything that foobar will play since that moment, unless I change something.
Title: foo_queuecontents - View and edit queue
Post by: lvqcl on 2010-02-24 20:55:05
Quote
In playlists tab I have "My music", *Browser*, "Filter Results" (from Columns UI) and Queue (by foo_queuecontents) and none of them is a queue.

Just create yet another playlist and fill it with the tracks you want to be played.
Title: foo_queuecontents - View and edit queue
Post by: 2E7AH on 2010-02-24 21:00:13
When you double click an item in playlist view that playlist becomes NowPlaying playlist, but it's not automatically Queue
You can drag&drop, remove, overwrite, take all kind of actions on this NowPlaying playlist, as on any other foobar playlist
If you switch to other playlist and double click some item there - than that playlist will become NowPlaying playlist
Queue is special locked playlist with limited options (as for number of items you can add, you can't drag&drop etc), thou you can rearange and do some little things with the help of this component
Title: foo_queuecontents - View and edit queue
Post by: krzyszcz on 2010-02-24 21:04:03
Quote
In playlists tab I have "My music", *Browser*, "Filter Results" (from Columns UI) and Queue (by foo_queuecontents) and none of them is a queue.

Just create yet another playlist and fill it with the tracks you want to be played.


I don't want to change anything about the way I search songs and arrange their playback. I just want a panel, that would
Quote
be able to show in a particular moment everything that foobar will play since that moment, unless I change something.


As you probably realized - those elements, that would be shown in this panel, don't necessarily belong to the same playlist. (e.g. because of using the queue context menu function). Of course, it would be great if I could also modify contents of that panel (delete/drag&drop), what would be equal to modifying planned playback, but the most important thing is the preview.

And I really don't know why you understand the word 'queue' as a playlist generated by "add to playback queue" context menu option. Queue are all the songs that foobar is set to play and their order. They are waiting for playback in a ...queue.
Title: foo_queuecontents - View and edit queue
Post by: Hitchhiker427 on 2010-02-25 07:53:30
In playlists tab I have "My music", *Browser*, "Filter Results" (from Columns UI) and Queue (by foo_queuecontents) and none of them is a queue.

Well, that's your fault.  Make a playlist containing the songs you want to play.  If you don't want to play "My music" or "Filter Results", then don't play them!  Only the songs you want to play (in queue) should be added to your playlist.

And if "My music" contains all of the music in your library, then STOP DOING THAT!  Cramming all of your music into a playlist is the "iTunes" way of doing things.  You can't choose to do things the "iTunes" way, and then complain that foobar isn't doing it the "Winamp" way.

Queue is a list of all songs waiting to be played. And how can it be impossible with foobar, which is so configurable and has so many plugins available, while in Winamp it is an onboard functionality.

How is what you're asking for any different than a playlist?  If you double click on a song in a playlist, the rest of the songs in that playlist are the "list of songs waiting to be played".  Why are you making this so much more difficult than it needs to be?



I don't want to change anything about the way I search songs and arrange their playback. I just want a panel, that would be able to show in a particular moment everything that foobar will play since that moment, unless I change something.

Look, I get it, you used to use Winamp (or some other player), and now you're trying to turn foobar2000 into Winamp.  I used Winamp for about 10 years or so before switching to foobar.  I know that Winamp uses a "Playlist Editor" component to display the now playing.  Trust me when I say that what you're asking for makes no sense in the context of what foobar does.  If you're truly unwilling to "change anything about the way I search for songs and arrange their playback", then foobar evidently is not for you.  Switch to a player that does it the way you want.  However, if you choose to give it a chance (as I did), I can almost guarantee you'll look back at this thread and realize how ridiculous this request is.

As you probably realized - those elements, that would be shown in this panel, don't necessarily belong to the same playlist.

WHY?  Why do you want to play multiple songs in a queue and specifically NOT put them on the same playlist?  How does that make any sense?

And I really don't know why you understand the word 'queue' as a playlist generated by "add to playback queue" context menu option. Queue are all the songs that foobar is set to play and their order. They are waiting for playback in a ...queue.

Once again, you're mistaken.  A "queue" IS specifically those songs in which the user has selected "add to playback queue".  The "songs that foobar is set to play and their order" is a PLAYLIST!  The playlist is the list of songs playing / waiting to be played.  As I've said before, you're making this WAY more difficult than it needs to be. 
Title: foo_queuecontents - View and edit queue
Post by: vogliadicane on 2010-02-25 09:45:59
@  krzyszcz: the only reason I can imagine, why you want the queue the way you describe it, is: to get a preview of what´s played next if you play your library in shuffle or random mode, and eventually want to edit that. Anything else makes no sense and is neither wanted nor needed, if you understand the principle behind foobar. The queue here is definitely only to send additional or better from you defined tracks to the playback, nothing more. And to watch anything YOU added you have the Queue playlist, and that´s enough.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-03-07 15:02:35
New version of the component is available! Now it supports default ui element too which means that you can view (and edit) queue contents using an ui element. This required quite a lot of hard work (windows gui programming...). I've tried to ensure that the looks of the component follow the general looks of the foobar2000.

Hopefully there's no bugs, please report if you find any. Much appreciated!

You can download version 0.2 from the component web site http://sites.google.com/site/salskisite/foo_queuecontents (http://sites.google.com/site/salskisite/foo_queuecontents).
Title: foo_queuecontents - View and edit queue
Post by: Xorx on 2010-03-07 16:16:10
Hello kerpondile! Thanks for the new version esp. the UI element. It works  great so far.

First feature request: Add Drag&Drop from playlist into UI element.

Edit: And first bug report: It seems I can't remove the "Queue"-playlist, even after disabling the queue-playlist feature in the preferences.
Title: foo_queuecontents - View and edit queue
Post by: Gapkiller on 2010-03-07 18:48:51
Thank you for further developing this component.

Feature Request:

Please don't kick me for that. 

Columns Ui support!

I know you just coded a Default Ui panel
but you guessed it: I don't use default Ui... 

Would be awesome!

Thx again.



Title: foo_queuecontents - View and edit queue
Post by: スラッシュ on 2010-03-07 21:23:36
I didn't want to be the first to request it...

I would also love it. If it's too much work then don't worry about it, but a columns ui panel would be very fantastic.
Title: foo_queuecontents - View and edit queue
Post by: electricprophet on 2010-03-07 22:03:41
thanks for making it available for DUI, kerpondile!

LE: i hope you'll implement the right click menu for the contents inside the queue tab; also i think i found a bug: when i select a track inside the queue, the text is not visible, it probably is the same color as the selection bar
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-03-08 07:44:00
Hello kerpondile! Thanks for the new version esp. the UI element. It works  great so far.

First feature request: Add Drag&Drop from playlist into UI element.

Edit: And first bug report: It seems I can't remove the "Queue"-playlist, even after disabling the queue-playlist feature in the preferences.


OK, This should be easy to fix. As a workaround you should be able to restart foobar and then delete the queue playlist.
EDIT: Yes drag&drop would be perhaps logical...I will consider it

Thank you for further developing this component.

Feature Request:

Please don't kick me for that.  ;)

Columns Ui support!

I know you just coded a Default Ui panel
but you guessed it: I don't use default Ui... 

Would be awesome!

Thx again.

For now I improve and fix bugs in the default ui version. Maybe later, who knows


I didn't want to be the first to request it... ;)

I would also love it. If it's too much work then don't worry about it, but a columns ui panel would be very fantastic.



thanks for making it available for DUI, kerpondile!

LE: i hope you'll implement the right click menu for the contents inside the queue tab; also i think i found a bug: when i select a track inside the queue, the text is not visible, it probably is the same color as the selection bar


This depends a bit on the colors; could you please provide me the background color you are using? Context menu sounds a nice addition.



Thanks to everybody for your support.
Title: foo_queuecontents - View and edit queue
Post by: freetochoose on 2010-03-08 12:19:52
I really would like to try your plugin, but I cannot get to the download page (probably it is blocked by the Chinese government since I am in China at the moment). Is it possible for you to put it else where so I can try to download it again?
Thanks in advance.

ftc
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-03-08 15:33:47
Here's an mirror http://www.2shared.com/file/11952895/d17a8...2-binaries.html (http://www.2shared.com/file/11952895/d17a8112/foo_queuecontents-02-binaries.html)
Title: foo_queuecontents - View and edit queue
Post by: freetochoose on 2010-03-09 11:45:39
Got it, thanks a lot kerpondile.

ftc
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2010-03-09 16:43:52
Yesterday i tried to find a bug in the uielement but without no luck!  I was more lucky with the queue playlist. There are two issues i experienced:

If you add tracks to queue playlist by dropping a selection on playlist tab of queueplaylist then the added tracks will be diplayed twice - on the other hand in uielement you will see the correct queue. Maybe this helps to find the bug: surprisingly this doesn't happen if the queue playlist is disabled in the preferences. edit: strikethrough and "how stupid can i be?"

If you ironically applies the "Add to Playback Queue" on entries inside the queue playlist so these tracks are added to the bottom of the queue playlist - what else? But in random cases your selection wil change to arbitrary tracks. I am not able to see a rule.
Title: foo_queuecontents - View and edit queue
Post by: AndyL on 2010-03-09 18:59:39
I would love to see a Columns UI panel too, but I'm just glad that this plugin now works with the latest version of fb2k - it was the one plugin I was missing from 0.9. Thanks for all your hard work Kerpondile!
Title: foo_queuecontents - View and edit queue
Post by: exxecutor on 2010-04-01 14:22:29
Great work! A small request:

It would be great if dragging items onto the 'queue' playlist would behave exactly like "Add to Playback Queue". Meaning that after the queue has finished, playback would continue in the playlist the queued items came from. Right now playback returns to the playlist you have been listening to before queueing items.

Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-04 22:08:47
Thanks!

About the queue playlist:
I understand this but I think it's not worth investigating more since the playlist feature in the component is a bit shabby already. I really don't want to complicate it even further. The problem is that the queue playlist is...well, a playlist.... and therefore works like every other playlist in the foobar. Certainly it is possible to do what you suggest but still it will probably not nice in terms of implementation.

I've been working on developing the ui component (also columns ui component coming up) further so it would support drag & drop etc., and hopefully would make it more preferable alternative over playlist. I will keep supporting (fixing bugs) in the 'queue playlist', but will not add new features related to it.
Title: foo_queuecontents - View and edit queue
Post by: exxecutor on 2010-04-04 23:32:50
Thanks for the reply, thats fine for me. I doesn't make a big difference whether the behaviour I described above is implemented for the ui panel or the playlist.
Title: foo_queuecontents - View and edit queue
Post by: lucido on 2010-04-07 08:15:17
hi
great component
I report foobar crash when trying to reorder Queue playlist content with an item who came from a deleted playlist
especially when items are pick up from Column UI filter search (who display result in the same playlist :'Filter Results')
thanks
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-11 10:26:42
Thanks, I actually stumbled upon this when developing the next version. It will be fixed.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-13 11:02:53
New version (0.3) released, check the first post for download link!

It contains new features and lots of bug fixes. Also columns ui support added due to user demand!
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-04-13 11:05:22
...Also columns ui support added due to user demand!


may i kiss you sir? thank you very much for your work
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-13 11:10:24
Sorry not with that avatar face  Thanks anyways!

EDIT: btw, please tell me what you like of the columns ui component and if you find something that should be fixed.
Title: foo_queuecontents - View and edit queue
Post by: jeremija on 2010-04-13 11:11:52
I get a crash error when I try to rearrange the columns by dragging and dropping.
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-04-13 11:23:58
i'm not at my desktop at the mo, but will get it into my config & give a good testing once i'am.

thanks again, your works appreciated
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-13 11:36:06
I get a crash error when I try to rearrange the columns by dragging and dropping.

Sorry about that, I don't know what is wrong with it.

I recompiled the code and tested it. Please, try to download the component again from the web site.
Title: foo_queuecontents - View and edit queue
Post by: Hamallainen on 2010-04-13 13:11:05
.... Also columns ui support added due to user demand!

Just wonderful, thanks a lot for this update.
I find the UI element a better way to manage the queue than the playlist.
I just did quick test but the Auto-scale Columns seems to have no effect. And when the panel has focus, keyboard shorcuts do not work. Will test more later.
Thanks again.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-13 13:22:34
CUI or DUI?
Title: foo_queuecontents - View and edit queue
Post by: Hamallainen on 2010-04-13 13:36:59
Sorry, i did not say i was using CUI since i was thank you for adding CUI support but yes i'm using CUI 
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-13 14:11:45
What do you mean that auto-scale columns does not work?
The intended behaviour is that (column width) / (ui elem. width) is kept constant for every column when the ui element is resized.

I found out that there is some tweaking to do when resizing columns but it still should work somewhat.

The keyboard shortcut problem truly exists for CUI, I'll look into it.

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: Hamallainen on 2010-04-13 14:22:31
Ah ok, i had misunderstood the behaviour.
I thought, it was supposed to immediately and automatically use the whole width of the panel right after activating it. Now i understand the '... with window size' part. Thanks for explaining.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-13 15:27:41
.... Also columns ui support added due to user demand!

..... And when the panel has focus, keyboard shorcuts do not work. Will test more later.
Thanks again.


Fixed in the newest version 0.3.1.

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2010-04-13 16:56:20
Thanks for the update! 

Here some bugs/glitches:


Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-13 17:33:28
* I can't create columns: after applying OK in preferences the line falls back to origin content (Name, Pattern, Left)

Are you sure you have pressed return key after you have modified name/pattern/left?

* When draggin from playlist to uielement then the item in playlist view has no value for queueindex in playing column.

I don't know how I missed that, don't know if it was working on some stage  I'm gonna look at it

*After resizing column in uielement manually i see vertical lines going through the display.

I didn't manage to reproduce this. Are you using CUI or DUI? What operating system?

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: jeremija on 2010-04-13 17:46:09
I get a crash error when I try to rearrange the columns by dragging and dropping.
Sorry about that, I don't know what is wrong with it.
I recompiled the code and tested it. Please, try to download the component again from the web site.
It seems to work OK now! Thank you!
Title: foo_queuecontents - View and edit queue
Post by: Hamallainen on 2010-04-14 00:23:04
..... And when the panel has focus, keyboard shorcuts do not work.
  Fixed in the newest version 0.3.1.  -kerpondile
 
  Yes it works now, thanks.
  Sorry to bother you again but the CUI panel doesnt remember Show column header state after restart. I activate it, it shows. I restart foobar, it's not on anymore, i have to re-activate it. Don't know if it matters but the panel is in a tab stack. Version 0.3 or 0.3.1, it's the same.
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-04-14 10:45:34
...Sorry to bother you again but the CUI panel doesnt remember Show column header state after restart. I activate it, it shows. I restart foobar, it's not on anymore, i have to re-activate it. Don't know if it matters but the panel is in a tab stack. Version 0.3 or 0.3.1, it's the same.


i too am experiencing this issue, whenever i disable the header it reappears on restart.
queue contents is contained in a panel stack splitter.
using latest version of foobar & components in vista sp2.

thanks for your time
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-14 12:50:57
..... And when the panel has focus, keyboard shorcuts do not work.
  Fixed in the newest version 0.3.1.  -kerpondile
 
  Yes it works now, thanks.
  Sorry to bother you again but the CUI panel doesnt remember Show column header state after restart. I activate it, it shows. I restart foobar, it's not on anymore, i have to re-activate it. Don't know if it matters but the panel is in a tab stack. Version 0.3 or 0.3.1, it's the same.



I will investigate it. I think I found the reason. For the next version this will fixed and probably the drag & drop will work as intended too.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2010-04-14 18:52:25
Are you sure you have pressed return key after you have modified name/pattern/left?
I am sure i have not pressed it!  That was the reason: i navigated with the mouse to next cell without confirming with enter key.  I must say that it is somehow unconvenient.


*After resizing column in uielement manually i see vertical lines going through the display.
I didn't manage to reproduce this. Are you using CUI or DUI? What operating system?
Sorry for giving almost no information. I am using DUI. I see the border on a Vista SP1 machine on the classic theme. On a XP machine i see no border in any theme.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-14 19:16:28
I will fix it in the next version. It annoys me too  ESC-key will be fixed also in the preferences; currently it doesn't work when the grid control is focused.

About the border issue: I cannot reproduce it with Windows 7 (tried classic theme also). So I think I just have to leave it. Sorry

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-20 09:27:56
New version available.

CHANGELOG:
0.3.2 / 2010-04-20
Bug fixes:
* Changes to column names are updated immediately in ui elements.
* "Show Column Header" setting is now correctly preserved over different foobar2000 sessions.
* ESC button works as expected in the preferences dialog: it closes it.
* Fixed column size glitches when enabling/disabling auto-sizing of columns
Improvements:
* UI element automatically refreshes items when one of the queue items has a metadata change.
* UI element has the same border style than the DUI playlist view.
* Preferences dialog: When configuring columns, no need to press return key anymore, text is committed automatically. Also improved processing of ESC and other keys in the prerences.
* Preferences dialog: Columns are sized reasonably by default
* Preferences dialog: Syntax Help button for HA Syntax Help.
* Preferences dialog: Help button brings to the wiki page.
* Drag from playlist to ui element now correctly queues the item preserving the "link" to the playlist (i.e. playlist items will have %queue_index%) for the dragged items in the playlist).
** Behaviour tested with DUI playlist and various playlist components for CUI.
** NOTE: As far as I know there is no proper way to do this, and currently the program checks every drop against the active playlist selection. If they are the same (same items and in the same order), drop is interpreted as queuing from the playlist. In addition, I've implemented a check that matches the dropped items against currently selected items. Currently selected items are the selected items of the currently focused UI element. This is not 100% fool proof but it should work in 99.9 % of the regular cases. (And in the 0.01 % of the cases it still doesn't explode the universe).
Other:
* Queue playlist functionality is now disabled by default for new installations.

EDIT: fixed formatting
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-04-20 09:34:34
thank you for your continued work kerpondile
Title: foo_queuecontents - View and edit queue
Post by: Hamallainen on 2010-04-21 23:53:09
Thanks for the update, everything's ok now except just a minor thing (sorry).
In the preference dialogue when i set alignement to RIGHT and click OK, it sets the panel's column to right but if i reopen preference dialogue, it says the alignement is set to CENTER while in the panel it's set to right. So it's working but the display is wrong in the preference dialogue.
Win XP SP3, foobar 1.0.2.1, foo_queuecontents 0.3.2
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-04-22 09:34:54
Thanks for the bug report. I've fixed the bug and now a new version (0.3.3) is available with the fix. Sorry for the inconvenience!
Title: foo_queuecontents - View and edit queue
Post by: Hamallainen on 2010-04-22 10:24:43
Thanks to you.
It's perfect.
Title: foo_queuecontents - View and edit queue
Post by: Naboul on 2010-04-26 19:21:06
Hello,

thanks a lot for your tool.

I got a little problem trying to reorder queue items by drag & drop. The behavior is quiet outstanding. Sometimes it moves 2 items, sometimes none and quiet often, it mix all the queue. Have you ever seen that kind of problem? I've tried with the last release, an old one, the UI layout and the default one (only foobar and the component).

Regards
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-07 19:15:33
Hi all,

new version fixes some small problems; most importantly drag & drop of columns bugged a little bit.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-07 19:38:27
Hello,

thanks a lot for your tool.

I got a little problem trying to reorder queue items by drag & drop. The behavior is quiet outstanding. Sometimes it moves 2 items, sometimes none and quiet often, it mix all the queue. Have you ever seen that kind of problem? I've tried with the last release, an old one, the UI layout and the default one (only foobar and the component).

Regards

Sorry I haven't been able to see this behaviour. And none except you have complained about it.... What operating system are you using?
Title: foo_queuecontents - View and edit queue
Post by: Jac74 on 2010-05-07 23:39:39
Hi!

I've had a small problem when using Queue contents editor, please see [a href='index.php?act=findpost&pid=704233']this post[/a] and its reply. I thought it was foo_uie_lyrics2, but it seems not to be the case. Just reporting in order to help everything move forward.

Regards,

Alberto
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-08 10:35:55
If you can provide me mini dump it would help tremendously to find out the exact problem. I tried to reproduce the bug you talked about, but with no success.

Mini dump file can be found from "%appdata%\foobar2000\crash reports" (in portable installation "foobar2000\crash reports"). You can type that path into run menu and it should open the correct folder, usually something like C:\Users\USERNAME\AppData\Roaming\foobar2000\crash reports in Win 7, something else in other windows versions.


I tested with the following configuration (Windows 7 64bit):

Code: [Select]
Core (2010-04-29 14:43:38 UTC)
foobar2000 core 1.0.3
foo_albumlist.dll (2010-04-29 12:35:36 UTC)
Album List 4.4
foo_cdda.dll (2010-04-29 12:35:30 UTC)
CD Audio Decoder 3.0
foo_converter.dll (2010-04-29 12:35:08 UTC)
Converter 1.4.1
foo_dsp_std.dll (2010-04-29 12:35:48 UTC)
Standard DSP Array 1.0
foo_input_std.dll (2010-04-29 12:35:34 UTC)
Standard Input Array 1.0
foo_queuecontents.dll (2010-05-07 17:14:14 UTC)
Queue Contents Editor 0.3.5
foo_quicksearch.dll (2010-04-13 12:31:44 UTC)
Quick Search Toolbar 1.0
foo_rgscan.dll (2010-04-29 12:35:12 UTC)
ReplayGain Scanner 2.0.9
foo_ui_columns.dll (2010-05-03 13:38:32 UTC)
Columns UI 0.3.8.6
foo_ui_std.dll (2010-04-29 12:35:56 UTC)
Default User Interface 0.9.5
foo_uie_albumlist.dll (2009-06-13 22:49:19 UTC)
Album list panel 0.3.5
foo_uie_elplaylist.dll (2010-04-03 23:39:02 UTC)
ELPlaylist 0.6.8.2(beta)
foo_uie_esplaylist.dll (2010-04-11 20:12:06 UTC)
EsPlaylist 0.0.9.0(beta)
foo_uie_lyrics2.dll (2010-04-12 18:19:24 UTC)
Lyric Show Panel 2 0.4.6.15
foo_uie_panel_splitter.dll (2009-12-09 22:16:12 UTC)
Panel Stack Splitter 0.3.8.3(alpha)
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-08 12:01:01
Hello,

thanks a lot for your tool.

I got a little problem trying to reorder queue items by drag & drop. The behavior is quiet outstanding. Sometimes it moves 2 items, sometimes none and quiet often, it mix all the queue. Have you ever seen that kind of problem? I've tried with the last release, an old one, the UI layout and the default one (only foobar and the component).

Regards


If you were reordering queue items in the queue playlist, I've found the problem. It will be fixed in the next version.
Title: foo_queuecontents - View and edit queue
Post by: Jac74 on 2010-05-10 15:41:39
If you can provide me mini dump it would help tremendously to find out the exact problem. I tried to reproduce the bug you talked about, but with no success.

Mini dump file can be found from "%appdata%\foobar2000\crash reports" (in portable installation "foobar2000\crash reports"). You can type that path into run menu and it should open the correct folder, usually something like C:\Users\USERNAME\AppData\Roaming\foobar2000\crash reports in Win 7, something else in other windows versions.


I'm away from home now and don't have access to my machine. As soon as I get back, I'll try to find this minidump and send it to you. BTW, this minidump is not what I posted in the other thread, is it?

Thanks,

Alberto
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-10 18:16:06
Minidump is different. It's a binary file with ".dmp" file extension. It helps me to find exactly where it crashed and hopefully why it crashed. The file is about 120 KB.

Thanks
Title: foo_queuecontents - View and edit queue
Post by: Jac74 on 2010-05-14 03:44:26
kerpondile,

I attach here the dumps in a .rar file as requested. Hope it helps!!

Regards,

Alberto

[attachment=5906:crash_reports.rar]
Title: foo_queuecontents - View and edit queue
Post by: Jac74 on 2010-05-14 03:46:28
Quote
Minidump is different. It's a binary file with ".dmp" file extension. It helps me to find exactly where it crashed and hopefully why it crashed. The file is about 120 KB.

Thanks


kerpondile,

Please find in this post (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=80920&view=findpost&p=705258) a .rar file with the crash dumps and reports as you asked.

Hope it helps to find out what happened. Thanks also for you plugin, which is very nice.

Kind regards,

Alberto
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-14 09:30:10
Thank you.

For some reason the dumps don't work right for me. Can you please try with the latest queuecontents (0.3.5) available here (http://sites.google.com/site/salskisite/foo_queuecontents/foo_queuecontents.zip?attredirects=0&d=1). If the crash happens also with that version can you send me the latest dmp file and text file accompanying it.

Thanks again for the trouble.
Title: foo_queuecontents - View and edit queue
Post by: Jac74 on 2010-05-14 23:17:54
kerpondile,

I've downloaded your new release of the plugin, and this time it's even worse. fb2k won't even give me a crash dump or report. I'm attaching the screen I get before fb2k gets closed.

[attachment=5907:Runtime_error.PNG]

If there's anything I can help you with, just let me know.

Regards,

Alberto
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-15 09:15:16
OK, that's weird... Can you find anything in the event viewer under Application category? See these instructions (http://support.microsoft.com/kb/308427) for more details how to get to the event viewer.

It seems hard to fix without any details. I think it might be related windows xp 64bit; it's a bit different from other windowses.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-15 09:21:18
And after the event viewer maybe you could try the attached version. It still should crash (it's 0.3.3) but I should get more information of the crash with that. If it now successfully opens, can you please send me the crash dump if it still crashes somewhere.

Just a stupid a question: have you tried removing the component (the dll and the element in the ui); then starting the foobar without the component; closing it and installing it again. It could help but as I have no clue where the crash happens it's hard to say for sure.
Title: foo_queuecontents - View and edit queue
Post by: durch on 2010-05-15 09:29:11
I was looking for a plugin that shows foobar2000's internal queue. Something like for example Winamp shows by default. But I guess the foo_queuecontents plugin is not what I'm looking for? Because when I start one or multiple songs from a playlist, they don't appear in the foo_queuecontents UI element.

Thanks in advance for clarification.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-15 09:40:05
It does show the *queue*. Without any components, in foobar you can add items to queue by right clicking them and choosing "Add to Playback Queue". These will show in the queueconnents component, too.

I don't remember exactly how Winamp works (it's been so long time), but I guess the confusion lies in the word "queue". The foobar queue only contains songs that are explicitly queued, it doesn't contain the next song automatically.

Hopefully this clarified a bit. Actually there's been some discussion on this in this thread if you are interested.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-15 10:30:22
kerpondile,

I've downloaded your new release of the plugin, and this time it's even worse. fb2k won't even give me a crash dump or report. I'm attaching the screen I get before fb2k gets closed.

[attachment=5907:Runtime_error.PNG]

If there's anything I can help you with, just let me know.

Regards,

Alberto


I found a way to debug the crash dumps correctly. Sorry for all the trouble. I will try to see why it crashed.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2010-05-15 14:17:37
I was looking for a plugin that shows foobar2000's internal queue. Something like for example Winamp shows by default. But I guess the foo_queuecontents plugin is not what I'm looking for?


I don't remember exactly how Winamp works (it's been so long time), but I guess the confusion lies in the word "queue". The foobar queue only contains songs that are explicitly queued, it doesn't contain the next song automatically..


There is no need for any clarification since Winamp itself contains a queue-functionality provided by the "Jump to File"-Plugin which is included in the installer. In winamps playlist editor window press "Q" to enqueue a track or press "J" to call the "Jump to File"-window that is exactly the same like the window of foo_queuecontents.

I mentioned it several times here in the forum but it can't be bad to say it once again: durch, you are confusing winamps media library playlists with foobars playlists. But the latter ones are corresondending rather with winamps playlist editor. In that sense: the winamp-to foobar tutorial i have readen somewhere is really bad as it provokes this confusion. Is it really so hard to compare the parts of two programs and to recognize the correspondending ones?
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-15 17:52:56
New version 0.3.6 published. It should resolve two bugs
1. Reordering queue playlist items should now work as expected
2. Bug reported by Jac74. Sometimes there is a crash when closing queuecontents panel when using CUI.

I've also added more logging code when a crash occurs for future bugs.

@Jac74: Please check if everything is ok with the new version. Thanks for your kind assistance finding the bug!

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: Jac74 on 2010-05-17 13:29:18
kerpondile,

I've downloaded the new version and it works OK. I tried adding and closing the panel in different ways (from context menu, from preferences, from layout live editing) and have had no crash as did before.

Thanks for your time!
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-17 15:28:30
That's good to hear! Thanks again for the help!

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: BobMopp on 2010-05-17 23:39:49
First of all, thank you for this plugin.
I got a question though. On the Wiki Page I read:

Quote
Playlist (legacy): [..]It is now considered obsolete/legacy option since reflecting queue contents in a separate playlist is confusing to say the least. It also has strange behaviour [..]


Will this playlist feature be further developed and refined, or sooner or later dropped?
I myself got problems using this feature, the playlist created by the queue plugin is totally empty, trying to start the queue by double clicking the playlist wont do anything. I can still drag and drop songs onto the playlist, which get queued in the queue window itself, still not added to the playlist though. I cannot delete the playlist while a queue item is playing. But renaming the playlist works, and is also recognized in the preference window of foo_queuecontents.
I am using CUI.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-18 08:17:28
First of all, thank you for this plugin.
I got a question though. On the Wiki Page I read:

Quote
Playlist (legacy): [..]It is now considered obsolete/legacy option since reflecting queue contents in a separate playlist is confusing to say the least. It also has strange behaviour [..]


Will this playlist feature be further developed and refined, or sooner or later dropped?


It wont be developed further but bugs will be fixed. I'm planning to keep the feature there for those who want it but it's not enabled by default in new versions.

I myself got problems using this feature, the playlist created by the queue plugin is totally empty, trying to start the queue by double clicking the playlist wont do anything. I can still drag and drop songs onto the playlist, which get queued in the queue window itself, still not added to the playlist though. I cannot delete the playlist while a queue item is playing. But renaming the playlist works, and is also recognized in the preference window of foo_queuecontents.
I am using CUI.

OK, first of all, could you tell what playlist component you are using? Are you using the default "playlist switcher" in the CUI? I assume you are using the latest version of foo_queuecontents, and the playlist check box is checked from the component preferences.

Let me repeat what you said so we are sure that I understood correctly:
* Queue Playlist is always empty
* When dropping items to queue playlist, they are not added to playlist but they *are* added to playback queue. You know that they are in the playback queue by the fact that the songs are visible in the queuecontents UI element.

Are the above correct?

Deletion of queue playlist is prevented by design. Playlist can be deleted after the queue playlist functionality is disabled from the preferences.
Title: foo_queuecontents - View and edit queue
Post by: BobMopp on 2010-05-18 09:30:15
Yep, it is the most recent queuecontents version 3.6, and it is in fact the default "playlist switcher"  component. I tried updating CUI from 0.3.8.5 to 0.3.8.6, which didnt solve the problem though.
And you understood correctly, your summary of my problems pretty much hits the nail on the head!
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-18 09:57:13
One more simple questions (since I can't reproduce the behaviour you are talking about); sorry if these seem like stupid:

When you drop files into queue playlist do you understand that the files should be added in the queue playlist (not the currently selected playlist, whatever that is)?

e.g. When I drop files from playlist "A" to "Queue" playlist; they files should be visible in the queue UI component but also in the "Queue" playlist.

What playlist component are you using?

If anything else helps can you record the erratic behaviour with this screencast utility:
http://www.screentoaster.com (http://www.screentoaster.com)

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: BobMopp on 2010-05-18 12:37:43
Better more questions than none at all
Quote
When you drop files into queue playlist do you understand that the files should be added in the queue playlist (not the currently selected playlist, whatever that is)?
Yes

I tried some things, and it's just getting more awkward.
First of all, I did this on my custom CUI, but also on a default DUI setup.

When the QueuePlaylist is empty, although items are in the queue (displayed in the Queue UI window), and then, when I rename the QueuePlaylist in the QueueContent Plugin config, the items appear in the playlist.
But as soon as anything is changed, as far as I can see now, that is pretty much anything from track switching to changing Queue item order or adding anything to it, the Queue Playlist is empty again.

In DUI, after I got the queue items to be displayed in the playlist, I managed to crash foobar by trying to order the tracks according to the column heads. First I press "Artist/Album", and then "tracknumber"

Here are the screencasts (btw. nice handy web application, thanks  )
DUI setup
http://www.screentoaster.com/watch/stUEtcR...FtYRFxbUl1RU1JV (http://www.screentoaster.com/watch/stUEtcREVMRFtYRFxbUl1RU1JV)

CUI setup
http://www.screentoaster.com/watch/stUEtcR...FtYRFxUWltZXldU (http://www.screentoaster.com/watch/stUEtcREVMRFtYRFxUWltZXldU)

My CUI Setup looks abit weird, its still WIP. You can see the QueueContent window on the very left, PlaylistSwitcher component is being toggled visible above it, right of it are the Filter window and ELPlaylist.

Here is the crash log if you can do anything with it:

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 03A86B61h
Access violation, operation: read, address: 00000000h

Call path:
entry=>app_mainloop=>queue_helpers::queue_reorder

Code bytes (03A86B61h):
03A86B21h:  03 4D E8 33 C0 3B CF 76 28 8D 9B 00 00 00 00 3D
03A86B31h:  00 04 00 00 73 09 8D 94 05 E0 FB FF FF EB 0A 8B
03A86B41h:  55 E4 8D 94 02 00 FC FF FF 40 C6 02 00 3B C1 72
03A86B51h:  DE C6 85 DF FB FF FF 01 3B F7 0F 86 95 00 00 00
03A86B61h:  8B 34 BB 3B F7 74 74 8B C7 C1 E8 03 3D 00 04 00
03A86B71h:  00 73 09 8D 84 05 E0 FB FF FF EB 0A 8B 4D E4 8D
03A86B81h:  84 01 00 FC FF FF 8A 95 DF FB FF FF 84 10 75 4B
03A86B91h:  8B C7 8B 8D D8 FB FF FF 8B 11 56 50 8B 02 FF D0

Stack (003FEDA0h):
003FED80h:  00000000 FFFFFD34 000002E4 FFFFFD34
003FED90h:  000002CC 00000019 00000000 03A86B1E
003FEDA0h:  CD546E0E 01509EE4 03AD9A04 00000000
003FEDB0h:  003FF1F4 013FEDC8 00000000 00000005
003FEDC0h:  00000005 0058D230 003FEDD8 765F61D3
003FEDD0h:  76660230 00000400 003FEE10 765F74FC
003FEDE0h:  765F74CB CD47CC3D 0058D230 765F7467
003FEDF0h:  0058D3A0 00000001 003FEDE4 003FEDE8
003FEE00h:  003FEFF0 76610155 76602B97 7305209A
003FEE10h:  001301A0 003FEE28 00000000 00000005
003FEE20h:  0058D230 730520A6 00000037 FFFFFFFF
003FEE30h:  00000101 00000019 CD47CC92 003FEEC0
003FEE40h:  7303C1D4 0058D230 00000001 00000005
003FEE50h:  00000001 0058D230 7303C1E4 00000100
003FEE60h:  00000000 0058D230 003FF158 00000004
003FEE70h:  003FEEC0 7305C16A 0057EBA8 00000004
003FEE80h:  00000004 0058D230 7305C1F7 0058D4D8
003FEE90h:  0058D230 00000004 035DF668 00008824
003FEEA0h:  00000006 76FFE20C 00000000 779FF33A
003FEEB0h:  00190000 0019019C 00000001 CD47CC6E

Registers:
EAX: 00000004, EBX: 00000000, ECX: 00000004, EDX: 003FEDBB
ESI: 0000001B, EDI: 00000000, EBP: 003FF1D8, ESP: 003FEDA0

Crash location:
Module: foo_queuecontents
Offset: 36B61h

Loaded modules:
foobar2000   loaded at 01390000h - 0154A000h
ntdll loaded at 76FD0000h - 77150000h
kernel32 loaded at 76190000h - 76290000h
KERNELBASE   loaded at 76110000h - 76156000h
COMCTL32 loaded at 73030000h - 731CE000h
msvcrt   loaded at 74D70000h - 74E1C000h
GDI32 loaded at 76440000h - 764D0000h
USER32   loaded at 765E0000h - 766E0000h
ADVAPI32 loaded at 763A0000h - 76440000h
sechost   loaded at 76530000h - 76549000h
RPCRT4   loaded at 75140000h - 75230000h
SspiCli   loaded at 74B40000h - 74BA0000h
CRYPTBASE loaded at 74B30000h - 74B3C000h
LPK   loaded at 76FA0000h - 76FAA000h
USP10 loaded at 76300000h - 7639D000h
SHLWAPI   loaded at 75230000h - 75287000h
DSOUND   loaded at 745A0000h - 74612000h
ole32 loaded at 75FB0000h - 7610C000h
WINMM loaded at 74910000h - 74942000h
POWRPROF loaded at 748E0000h - 74905000h
SETUPAPI loaded at 76790000h - 7692D000h
CFGMGR32 loaded at 764E0000h - 76507000h
OLEAUT32 loaded at 76700000h - 7678F000h
DEVOBJ   loaded at 766E0000h - 766F2000h
UxTheme   loaded at 72940000h - 729C0000h
SHELL32   loaded at 752E0000h - 75F29000h
shared   loaded at 10000000h - 1002B000h
imagehlp loaded at 76160000h - 7618A000h
dbghelp   loaded at 74760000h - 7484B000h
COMDLG32 loaded at 75F30000h - 75FAB000h
IMM32 loaded at 76290000h - 762F0000h
MSCTF loaded at 75040000h - 7510C000h
CLBCatQ   loaded at 74CE0000h - 74D63000h
MMDevApi loaded at 74720000h - 74759000h
PROPSYS   loaded at 74620000h - 74715000h
dwmapi   loaded at 72280000h - 72293000h
foo_uie_biography loaded at 74870000h - 748C6000h
gdiplus   loaded at 722A0000h - 72430000h
foo_input_std loaded at 02CF0000h - 02E3E000h
foo_uie_panel_splitter   loaded at 00440000h - 00497000h
foo_quicksearch   loaded at 74560000h - 74592000h
MSVCP90   loaded at 73650000h - 736DE000h
MSVCR90   loaded at 735A0000h - 73643000h
foo_uie_wsh_panel_mod loaded at 744B0000h - 7455C000h
Msimg32   loaded at 72430000h - 72435000h
foo_uie_library_tree loaded at 02950000h - 029A2000h
foo_rgscan   loaded at 01340000h - 0138F000h
foo_ui_hacks loaded at 029D0000h - 02A0F000h
foo_uie_elplaylist   loaded at 032D0000h - 0333A000h
foo_converter loaded at 03380000h - 033F1000h
foo_ui_columns   loaded at 03710000h - 0389C000h
foo_cdda loaded at 02B20000h - 02B6E000h
foo_dsp_std   loaded at 02BA0000h - 02BE9000h
foo_queuecontents loaded at 03A50000h - 03B02000h
foo_uie_lyrics2   loaded at 03C10000h - 03CFE000h
WININET   loaded at 74E20000h - 74F14000h
Normaliz loaded at 76510000h - 76513000h
urlmon   loaded at 74BA0000h - 74CD5000h
CRYPT32   loaded at 74F20000h - 7503C000h
MSASN1   loaded at 762F0000h - 762FC000h
iertutil loaded at 769D0000h - 76BC9000h
foo_uie_vis_channel_spectrum loaded at 02E40000h - 02E7D000h
foo_uie_esplaylist   loaded at 742B0000h - 74304000h
foo_playcount loaded at 03340000h - 03370000h
foo_albumlist loaded at 03540000h - 0359C000h
foo_ui_std   loaded at 03FB0000h - 040BE000h
WtsApi32 loaded at 73580000h - 7358D000h
sud   loaded at 71220000h - 712DB000h
ADVPACK   loaded at 74480000h - 744AE000h
VERSION   loaded at 73590000h - 73599000h
DUI70 loaded at 740A0000h - 74152000h
CRYPTSP   loaded at 734D0000h - 734E6000h
rsaenh   loaded at 73490000h - 734CB000h
RpcRtRemote   loaded at 74450000h - 7445E000h

Stack dump analysis:
Address: 01509EE4h (foobar2000+179EE4h)
Address: 03AD9A04h (foo_queuecontents+89A04h), symbol: "foobar2000_get_interface" (+4CFE4h)
Address: 013FEDC8h (foobar2000+6EDC8h)
Address: 765F61D3h (USER32+161D3h), symbol: "gapfnScSendMessage" (+20Bh)
Address: 76660230h (USER32+80230h), symbol: "ShutdownBlockReasonDestroy" (+596Ah)
Address: 765F74FCh (USER32+174FCh), symbol: "GetSystemMetrics" (+95h)
Address: 765F74CBh (USER32+174CBh), symbol: "GetSystemMetrics" (+64h)
Address: 765F7467h (USER32+17467h), symbol: "GetSystemMetrics" (+0h)
Address: 76610155h (USER32+30155h), symbol: "DdeQueryStringW" (+6D7h)
Address: 76602B97h (USER32+22B97h), symbol: "RedrawWindow" (+15h)
Address: 7305209Ah (COMCTL32+2209Ah), symbol: "SetWindowSubclass" (+67D1h)
Address: 730520A6h (COMCTL32+220A6h), symbol: "SetWindowSubclass" (+67DDh)
Address: 7303C1D4h (COMCTL32+C1D4h), symbol: "DPA_Clone" (+583Ah)
Address: 7303C1E4h (COMCTL32+C1E4h), symbol: "DPA_Clone" (+584Ah)
Address: 7305C16Ah (COMCTL32+2C16Ah), symbol: "Ordinal235" (+13F0h)
Address: 7305C1F7h (COMCTL32+2C1F7h), symbol: "Ordinal235" (+147Dh)
Address: 76FFE20Ch (ntdll+2E20Ch), symbol: "RtlInitUnicodeString" (+164h)
Address: 7305DC83h (COMCTL32+2DC83h), symbol: "ImageList_DrawIndirect" (+1063h)
Address: 73056969h (COMCTL32+26969h), symbol: "ImageList_CoCreateInstance" (+A7Ah)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F701Bh (USER32+1701Bh), symbol: "GetWindowLongW" (+2Eh)
Address: 765F7027h (USER32+17027h), symbol: "GetWindowLongW" (+3Ah)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 730569AEh (COMCTL32+269AEh), symbol: "ImageList_CoCreateInstance" (+ABFh)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F6238h (USER32+16238h), symbol: "gapfnScSendMessage" (+270h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 77003AF4h (ntdll+33AF4h), symbol: "RtlImageNtHeader" (+B10h)
Address: 77003B23h (ntdll+33B23h), symbol: "RtlImageNtHeader" (+B3Fh)
Address: 765F6901h (USER32+16901h), symbol: "gapfnScSendMessage" (+939h)
Address: 765F6899h (USER32+16899h), symbol: "gapfnScSendMessage" (+8D1h)
Address: 765F6941h (USER32+16941h), symbol: "gapfnScSendMessage" (+979h)
Address: 76610155h (USER32+30155h), symbol: "DdeQueryStringW" (+6D7h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 013FF028h (foobar2000+6F028h)
Address: 76FFE20Ch (ntdll+2E20Ch), symbol: "RtlInitUnicodeString" (+164h)
Address: 7704041Dh (ntdll+7041Dh), symbol: "WinSqmSetIfMaxDWORD" (+31h)
Address: 77003B23h (ntdll+33B23h), symbol: "RtlImageNtHeader" (+B3Fh)
Address: 77003B4Eh (ntdll+33B4Eh), symbol: "RtlImageNtHeader" (+B6Ah)
Address: 76FE00E6h (ntdll+100E6h), symbol: "KiUserCallbackDispatcher" (+2Eh)
Address: 7704041Dh (ntdll+7041Dh), symbol: "WinSqmSetIfMaxDWORD" (+31h)
Address: 03AA4902h (foo_queuecontents+54902h), symbol: "foobar2000_get_interface" (+17EE2h)
Address: 76FFDEA3h (ntdll+2DEA3h), symbol: "RtlFreeHeap" (+7Eh)
Address: 761A14D1h (kernel32+114D1h), symbol: "HeapFree" (+14h)
Address: 014A7311h (foobar2000+117311h)
Address: 014A7330h (foobar2000+117330h)
Address: 014AB0F0h (foobar2000+11B0F0h)
Address: 014A7330h (foobar2000+117330h)
Address: 01422504h (foobar2000+92504h)
Address: 03ACDB50h (foo_queuecontents+7DB50h), symbol: "foobar2000_get_interface" (+41130h)
Address: 03A70120h (foo_queuecontents+20120h)
Address: 03AD9B2Ch (foo_queuecontents+89B2Ch), symbol: "foobar2000_get_interface" (+4D10Ch)
Address: 03AD8E88h (foo_queuecontents+88E88h), symbol: "foobar2000_get_interface" (+4C468h)
Address: 03A69169h (foo_queuecontents+19169h)
Address: 01509EE4h (foobar2000+179EE4h)
Address: 03AD99F4h (foo_queuecontents+899F4h), symbol: "foobar2000_get_interface" (+4CFD4h)
Address: 01509EE4h (foobar2000+179EE4h)
Address: 03ACD49Eh (foo_queuecontents+7D49Eh), symbol: "foobar2000_get_interface" (+40A7Eh)
Address: 03A80767h (foo_queuecontents+30767h)
Address: 01509EE4h (foobar2000+179EE4h)
Address: 7704041Dh (ntdll+7041Dh), symbol: "WinSqmSetIfMaxDWORD" (+31h)
Address: 7704041Dh (ntdll+7041Dh), symbol: "WinSqmSetIfMaxDWORD" (+31h)
Address: 76FFE20Ch (ntdll+2E20Ch), symbol: "RtlInitUnicodeString" (+164h)
Address: 76FFDF72h (ntdll+2DF72h), symbol: "RtlAllocateHeap" (+ACh)
Address: 76FFDEC6h (ntdll+2DEC6h), symbol: "RtlAllocateHeap" (+0h)
Address: 76FFDEA3h (ntdll+2DEA3h), symbol: "RtlFreeHeap" (+7Eh)
Address: 03AD8F60h (foo_queuecontents+88F60h), symbol: "foobar2000_get_interface" (+4C540h)
Address: 03AD8E14h (foo_queuecontents+88E14h), symbol: "foobar2000_get_interface" (+4C3F4h)
Address: 03AD8E00h (foo_queuecontents+88E00h), symbol: "foobar2000_get_interface" (+4C3E0h)
Address: 013A5757h (foobar2000+15757h)
Address: 013F7C20h (foobar2000+67C20h)
Address: 03ACF4EDh (foo_queuecontents+7F4EDh), symbol: "foobar2000_get_interface" (+42ACDh)
Address: 0142E36Ch (foobar2000+9E36Ch)
Address: 01509EE4h (foobar2000+179EE4h)
Address: 0142D7ADh (foobar2000+9D7ADh)
Address: 014BCC00h (foobar2000+12CC00h)
Address: 0142FD26h (foobar2000+9FD26h)
Address: 0401B286h (foo_ui_std+6B286h)
Address: 0401EB3Ah (foo_ui_std+6EB3Ah)
Address: 0407AD5Ch (foo_ui_std+CAD5Ch), symbol: "foobar2000_get_interface" (+2D38Ch)
Address: 0407AD9Ch (foo_ui_std+CAD9Ch), symbol: "foobar2000_get_interface" (+2D3CCh)
Address: 040806B0h (foo_ui_std+D06B0h), symbol: "foobar2000_get_interface" (+32CE0h)
Address: 04080668h (foo_ui_std+D0668h), symbol: "foobar2000_get_interface" (+32C98h)
Address: 0406EFB0h (foo_ui_std+BEFB0h), symbol: "foobar2000_get_interface" (+215E0h)
Address: 03FDBA5Fh (foo_ui_std+2BA5Fh)
Address: 7700247Dh (ntdll+3247Dh), symbol: "NtdllDefWindowProc_W" (+0h)
Address: 03FDBC7Bh (foo_ui_std+2BC7Bh)
Address: 03FE224Fh (foo_ui_std+3224Fh)
Address: 03FDBDE3h (foo_ui_std+2BDE3h)
Address: 04023703h (foo_ui_std+73703h)
Address: 0401D258h (foo_ui_std+6D258h)
Address: 04023ECAh (foo_ui_std+73ECAh)
Address: 04065CA8h (foo_ui_std+B5CA8h), symbol: "foobar2000_get_interface" (+182D8h)
Address: 04095D90h (foo_ui_std+E5D90h), symbol: "foobar2000_get_interface" (+483C0h)
Address: 0402419Bh (foo_ui_std+7419Bh)
Address: 04023E5Ch (foo_ui_std+73E5Ch)
Address: 03FC9B98h (foo_ui_std+19B98h)
Address: 765F6238h (USER32+16238h), symbol: "gapfnScSendMessage" (+270h)
Address: 765F68EAh (USER32+168EAh), symbol: "gapfnScSendMessage" (+922h)
Address: 765F6899h (USER32+16899h), symbol: "gapfnScSendMessage" (+8D1h)
Address: 76610155h (USER32+30155h), symbol: "DdeQueryStringW" (+6D7h)
Address: 765F7177h (USER32+17177h), symbol: "GetWindowLongW" (+18Ah)
Address: 76610155h (USER32+30155h), symbol: "DdeQueryStringW" (+6D7h)
Address: 765F72F1h (USER32+172F1h), symbol: "GetDC" (+ABh)
Address: 76FE00E6h (ntdll+100E6h), symbol: "KiUserCallbackDispatcher" (+2Eh)
Address: 76FE0070h (ntdll+10070h), symbol: "KiUserApcDispatcher" (+48h)
Address: 77002472h (ntdll+32472h), symbol: "RtlReleaseSRWLockShared" (+29h)
Address: 765F723Bh (USER32+1723Bh), symbol: "GetPropW" (+72h)
Address: 76601C01h (USER32+21C01h), symbol: "SetFocus" (+68h)
Address: 765FCB50h (USER32+1CB50h), symbol: "GetWindow" (+50h)
Address: 765FCD81h (USER32+1CD81h), symbol: "SendMessageW" (+4Ch)
Address: 73060524h (COMCTL32+30524h), symbol: "DetachScrollBars" (+2FAh)
Address: 730BE3DDh (COMCTL32+8E3DDh), symbol: "Ordinal392" (+173Ch)
Address: 7312446Ch (COMCTL32+F446Ch), symbol: "TaskDialog" (+55D8h)
Address: 731264A0h (COMCTL32+F64A0h), symbol: "TaskDialog" (+760Ch)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F6238h (USER32+16238h), symbol: "gapfnScSendMessage" (+270h)
Address: 7305A7A7h (COMCTL32+2A7A7h), symbol: "Ordinal342" (+208Bh)
Address: 765F6941h (USER32+16941h), symbol: "gapfnScSendMessage" (+979h)
Address: 765F6901h (USER32+16901h), symbol: "gapfnScSendMessage" (+939h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F701Bh (USER32+1701Bh), symbol: "GetWindowLongW" (+2Eh)
Address: 765F7027h (USER32+17027h), symbol: "GetWindowLongW" (+3Ah)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 730569A6h (COMCTL32+269A6h), symbol: "ImageList_CoCreateInstance" (+AB7h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F6238h (USER32+16238h), symbol: "gapfnScSendMessage" (+270h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F68EAh (USER32+168EAh), symbol: "gapfnScSendMessage" (+922h)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F6899h (USER32+16899h), symbol: "gapfnScSendMessage" (+8D1h)
Address: 76610155h (USER32+30155h), symbol: "DdeQueryStringW" (+6D7h)
Address: 765F7D31h (USER32+17D31h), symbol: "LoadStringW" (+11Fh)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 765F8E42h (USER32+18E42h), symbol: "RemovePropW" (+E0h)
Address: 76610155h (USER32+30155h), symbol: "DdeQueryStringW" (+6D7h)
Address: 765F7DFAh (USER32+17DFAh), symbol: "DispatchMessageW" (+Fh)
Address: 73056972h (COMCTL32+26972h), symbol: "ImageList_CoCreateInstance" (+A83h)
Address: 76612292h (USER32+32292h), symbol: "IsDialogMessageW" (+11Eh)
Address: 0404B104h (foo_ui_std+9B104h)
Address: 013F456Dh (foobar2000+6456Dh)
Address: 765F7E92h (USER32+17E92h), symbol: "GetMessageW" (+0h)
Address: 761A1199h (kernel32+11199h), symbol: "SetLastError" (+0h)
Address: 76600112h (USER32+20112h), symbol: "PeekMessageW" (+0h)
Address: 014BD418h (foobar2000+12D418h)
Address: 013F46BEh (foobar2000+646BEh)
Address: 013F54C4h (foobar2000+654C4h)
Address: 014DF5E8h (foobar2000+14F5E8h)
Address: 014DF5E8h (foobar2000+14F5E8h)
Address: 014EA2ACh (foobar2000+15A2ACh)
Address: 01390000h (foobar2000+0h)
Address: 76FFE20Ch (ntdll+2E20Ch), symbol: "RtlInitUnicodeString" (+164h)
Address: 76FFDF72h (ntdll+2DF72h), symbol: "RtlAllocateHeap" (+ACh)
Address: 014EA290h (foobar2000+15A290h)
Address: 76FFE20Ch (ntdll+2E20Ch), symbol: "RtlInitUnicodeString" (+164h)
Address: 76FFDF72h (ntdll+2DF72h), symbol: "RtlAllocateHeap" (+ACh)
Address: 76FFDEC6h (ntdll+2DEC6h), symbol: "RtlAllocateHeap" (+0h)
Address: 0150F090h (foobar2000+17F090h)
Address: 014A75B6h (foobar2000+1175B6h)
Address: 014AF52Ch (foobar2000+11F52Ch)
Address: 014AB0F0h (foobar2000+11B0F0h)
Address: 014AF52Ch (foobar2000+11F52Ch)
Address: 014AD514h (foobar2000+11D514h)
Address: 7701027Fh (ntdll+4027Fh), symbol: "RtlCreateHeap" (+1A4h)
Address: 014A7E02h (foobar2000+117E02h)
Address: 014C7D77h (foobar2000+137D77h)
Address: 100027BBh (shared+27BBh), symbol: "uCallStackTracker::uCallStackTracker" (+2Fh)
Address: 014DF238h (foobar2000+14F238h)
Address: 013F5707h (foobar2000+65707h)
Address: 01390000h (foobar2000+0h)
Address: 014A7B01h (foobar2000+117B01h)
Address: 014D20B8h (foobar2000+1420B8h)
Address: 0150F090h (foobar2000+17F090h)
Address: 014CFCE0h (foobar2000+13FCE0h)
Address: 013A57A6h (foobar2000+157A6h)
Address: 014AB0F0h (foobar2000+11B0F0h)
Address: 014A7B01h (foobar2000+117B01h)

Environment:
App: foobar2000 v1.0.1
OS: Windows 6.1.7600 x64
CPU: AMD Athlon™ 64 X2 Dual Core Processor 4200+, features: 3DNow!ex MMX SSE SSE2 SSE3
Audio: Speakers (High Definition Audio Device); Digital Audio (S/PDIF) (High Definition Audio Device)
UI: Default User Interface 0.9.5

Components:
Core (2010-03-06 14:44:16)
foobar2000 core 1.0.1
foo_albumlist.dll (2010-03-06 14:42:18)
Album List 4.4
foo_cdda.dll (2010-03-06 14:42:14)
CD Audio Decoder 3.0
foo_converter.dll (2010-03-06 14:42:12)
Converter 1.4
foo_dsp_std.dll (2010-03-06 14:42:26)
Standard DSP Array 1.0
foo_input_std.dll (2010-03-06 14:42:00)
Standard Input Array 1.0
foo_playcount.dll (2009-04-29 21:09:32)
Playback Statistics 2.1.9
foo_queuecontents.dll (2010-05-15 18:40:56)
Queue Contents Editor 0.3.6
foo_quicksearch.dll (2010-05-14 19:08:00)
Quick Search Toolbar 1.9
foo_rgscan.dll (2010-03-06 14:41:56)
ReplayGain Scanner 2.0.9
foo_ui_columns.dll (2010-05-03 15:38:32)
Columns UI 0.3.8.6
foo_ui_hacks.dll (2010-05-01 13:10:06)
UI Hacks 2010-04-30
foo_ui_std.dll (2010-03-06 14:42:34)
Default User Interface 0.9.5
foo_uie_biography.dll (2010-04-30 23:49:24)
Biography View 0.4.2.0
foo_uie_elplaylist.dll (2009-04-26 08:04:38)
ELPlaylist 0.6.5.2(beta)
foo_uie_esplaylist.dll (2010-04-30 00:01:08)
EsPlaylist 0.1.0.0
foo_uie_library_tree.dll (2009-04-19 12:16:58)
Library Tree 0.3.1
foo_uie_lyrics2.dll (2010-04-12 20:19:24)
Lyric Show Panel 2 0.4.6.15
foo_uie_panel_splitter.dll (2009-05-08 21:50:52)
Panel Stack Splitter 0.3.7.4(alpha)
foo_uie_vis_channel_spectrum.dll (2008-05-18 03:02:12)
Channel Spectrum panel 0.17.2
foo_uie_wsh_panel_mod.dll (2010-04-07 03:04:37)
WSH Panel Mod 1.3.3

Recent events:
Watching: D:\Users\*****\Music
Album List refreshed in: 0:00.022996
Warning: Queue Contents Editor: Failed to read ui element settings. Reseting settings.
Startup time : 0:00.243233

Taking a short glimpse at it, the following statements might be interesting, but I got no idea of that..

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 03A86B61h
Access violation, operation: read, address: 00000000h

Call path:
entry=>app_mainloop=>queue_helpers::queue_reorder
[...]
Warning: Queue Contents Editor: Failed to read ui element settings. Reseting settings.

To clarify: It appears that the playlist is really totally empty, as saving the QueuePlaylist gives a file with similar content to a manually created empty playlist.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-18 13:20:30
OK, I was drag&dropping stuff the wrong way. I surely can reproduce this and I have a hunch where the problem lies.
Title: foo_queuecontents - View and edit queue
Post by: BobMopp on 2010-05-18 13:35:40
That's a good thing to hear! The longer I stared at this problem, the more confusing it got 
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-18 16:21:49
Try the latest version 0.3.7. It should fix the problems related to queue playlist.
Title: foo_queuecontents - View and edit queue
Post by: BobMopp on 2010-05-18 18:28:38
Yes, with the new version I can drag&drop songs onto the playlist now.

Two problems still remain, though:
1. QueuePlaylist entries are deleted at events (e.g. track change, next / previous track, but also drag&drop of tracks onto the Queue UI window (not the playlist) ). When drag&drop'ing tracks back onto the Queue Playlist, they get inserted at the beginning of the queue (making them the next tracks to be played and not the last), but already queue'ed items are not displayed. This results in asynchronous item lists. Renaming the Queue Playlist temporarily solves the problem and lets the Playlist display all queued items correctly - until the next track change, etc.

2. A problem which was also persistent in the previous version: Trying to start the queue (or skipping to the next track) by double-clicking the playlist entry is not possible - instead every other playlist entry triggers the next-button for the queue - those playlists do not start their own track list, until the queue is totally empty. <- This is the case when the Queue playlist is empty.
When there happens to be queue items displayed in that playlist, double-clicking the queue playlist results in playback of the first track (and as already mentioned also deletes every entry from the playlist).
You can see that in the screen capture, I filled the queue with multiple entries of the same song, double-clicking through my playlists (you can see Queue entries disappearing), until none is left and the track is finally changed.

Here's the screen cast: http://www.screentoaster.com/watch/stUEtcR...FtYRF9cWVxQU15V (http://www.screentoaster.com/watch/stUEtcREVMRFtYRF9cWVxQU15V)
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-18 19:25:38
Yes, with the new version I can drag&drop songs onto the playlist now.

Two problems still remain, though:
1. QueuePlaylist entries are deleted at events (e.g. track change, next / previous track, but also drag&drop of tracks onto the Queue UI window (not the playlist) )

QueuePlaylist entries are deleted at events is by design since it actually represents what happens to the queued items.

e.g. If you have tracks A, B and C in the queue playback and you start a new song by double clicking track D in playlist F, the queue will empty itself. This happens without queuecontents, too.

When dragging items to UI element this shouldn't happen of course. This is a bug.

When drag&drop'ing tracks back onto the Queue Playlist, they get inserted at the beginning of the queue (making them the next tracks to be played and not the last), but already queue'ed items are not displayed. This results in asynchronous item lists. Renaming the Queue Playlist temporarily solves the problem and lets the Playlist display all queued items correctly - until the next track change, etc.

When you drag & drop files to queue playlist, they will be appended to the end of playlist (if you drag them using switcher = your "playlist menu"); or the position you choose (if you drag them using playlist viewer component). I haven't taken queue playlist -> UI element drag & drop scenarios into account and therefore drag & drop from the queue playlist the queue ui element will fail.

P.S. Where exactly the files will go depends on your settings with playlist switcher. If it is configured to put files in the end (when dragging songs on top of a playlist) then the queue playlist should try to follow that wish.

2. A problem which was also persistent in the previous version: Trying to start the queue (or skipping to the next track) by double-clicking the playlist entry is not possible - instead every other playlist entry triggers the next-button for the queue - those playlists do not start their own track list, until the queue is totally empty. <- This is the case when the Queue playlist is empty.
When there happens to be queue items displayed in that playlist, double-clicking the queue playlist results in playback of the first track (and as already mentioned also deletes every entry from the playlist).
You can see that in the screen capture, I filled the queue with multiple entries of the same song, double-clicking through my playlists (you can see Queue entries disappearing), until none is left and the track is finally changed.

Here's the screen cast: http://www.screentoaster.com/watch/stUEtcR...FtYRF9cWVxQU15V (http://www.screentoaster.com/watch/stUEtcREVMRFtYRF9cWVxQU15V)


I'm not sure what you mean but if you double click a playlist while there is stuff in the queue, the next queue item is played. As a concequence of this the track which is was the first in the queue will be removed from the UI element and the playlist since they are not in the queue anymore.

This is also happening without queuecontents, so it works as expected.

Probably now you can see why I don't like the playlist functionality so much anymore. It confuses people a lot since in some cases it works like a playlist and in some cases it works in completely different way.

Tell me what you think. I will try to fix the issues with drag & drop deleting stuff (your 1st point), that shouldn't happen.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-19 08:27:26
Updated the component again. Should fix queue playlist -> queue UI element drag & drop issues.
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-05-19 12:26:59
thank you for your continued efforts kerpondile, its greatly appreciated on an often used component.

however, i appear to have come across an issue which i have only noticed in the past 2 versions of your component.
i have the "Enable Queue Playlist Feature" activated but whenever i add new tracks to the playback queue or change the order in the CUI element the Queue playlist becomes empty.
also, just realised the playlist becomes empty on track change too. items are restored in the playlist if i deactive & reactivate the feature, but obviously lost again if i do any of the above.

using Columns UI 0.3.8.6, Queue Contents Editor 0.3.8 & using ELPlaylist 0.6.8.2(beta) as playlist viewer, switching with the standard CUI Playlist Switcher.

if i can provide anymore information please dont hesitate to ask.

thanks again
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-19 13:16:44
Some questions:
* How do you add the tracks to the playback queue? Using foobar context menu ("Add to Playback Queue")?
* What do you mean by track change? when the track is finished and it should move on the next track?

I couldn't reproduce the behaviour you talked about. See the videos below:

Queueing and reordering
http://www.screentoaster.com/watch/stUEtcS...econtents_0_3_8 (http://www.screentoaster.com/watch/stUEtcS0RKRFtYRF9bWlpQUlZQ/foo_queuecontents_0_3_8)

Queing items and track change behaviour
http://www.screentoaster.com/watch/stUEtcS...o_queuecontents (http://www.screentoaster.com/watch/stUEtcS0RKRFtYRF9bWllbUlRc/foo_queuecontents)
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-05-19 13:35:23
Some questions:
* How do you add the tracks to the playback queue? Using foobar context menu ("Add to Playback Queue")?

Yes, i have a keyboard shortcut assigned to the context menu command. tried it with the context menu anyway just in case, still the same behaviour

* What do you mean by track change? when the track is finished and it should move on the next track?

Yes, when the track is completed & moves on to the next in the queue it wipes the playlist, the CUI element still behaves correctly though.

would you like a list of components?

thanks for your time
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-19 14:00:49
I assume you have the latest queuecontents version, 0.3.8?

Can you tell me if I did something differently in the videos?
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-05-19 14:20:18
I assume you have the latest queuecontents version, 0.3.8?

Yes, using 0.3.8, was present in 0.3.7 too but not noticed in versions previous to that im afraid as didn't use the feature due to the recently fixed erratic behaviour.

Can you tell me if I did something differently in the videos?

No, nothing different from what iam doing in the videos. only difference being the layout.
the CUI element is contained in a Panel Stack Splitter, but surely that wouldnt effect the playlist feature.

if i can provide anymore info or post my config to you please let me know.

thanks
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-19 14:47:52
OK that is very weird. I have no idea what could produce different behaviour. Maybe if you could try with "debug version" of the component; it logs much stuff in the console.

You can find the debug version here (http://sites.google.com/site/salskisite/foo_queuecontents/foo_queuecontents-0.3.8-sources.zip?attredirects=0&d=1). Just exctract the dll from the "Debug" folder.

Then you can paste the logs here. Maybe I can figure out something there.

Thanks
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-05-19 15:34:43
kerpondile, im afraid the plot thickens now.

just tried the debug version, everything works as it should & as expected. tried everything i said previously, all worked by design.
so, went back to the original component (i re-downloaded it from the link on the 1st page to be sure) & sure enough the behaviour i explained earlier is still present, queue isnt added to queue playlist unless i disable & re-enable it, then the previous said behaviour still happens on track change, order change etc.

i hope this helps you
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-19 15:43:30
Hah! The plot thickens indeed. Thanks very much.

It is the latest code, that's for sure. But apparently there is some differences between the debug version and the "release" version. I can now reproduce the bugs with release version.

This finding should narrow it quite a lot.
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-05-19 15:50:54
happy to help fella, just glad you've been able reproduce it yourself as it was starting to look like i was alone on this one haha!

thanks for your time again, greatly appreciated.
looking forward to the fix
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-19 16:05:16
Found the problem. A single line that was kinda "commented" in the release version. I will release new version today or tomorrow.

Thanks very much for your help. Hopefully it works after this
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-05-19 16:21:51
brilliant, thanks again. i can now rest easy, my disturbance here is done
Title: foo_queuecontents - View and edit queue
Post by: BobMopp on 2010-05-19 18:18:13
now that is great news indeed! And Jack Schmaltz, you were not alone at all! I've been trying to explain this problem to kerpondile throughout the previous days. Kinda talked past each other
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-05-20 09:25:54
New version is up which should fix issues with queue playlist functionality. Do not hesitate to complain here if you find something else

Thanks guys for helping me to find the bug!

-kerpondile
Title: foo_queuecontents - View and edit queue
Post by: Jack Schmaltz on 2010-05-20 09:58:35
New version is up which should fix issues with queue playlist functionality.

thanks for this kerpondile, just give it a quick play with the issues i had yesterday & all appears to be well.

Do not hesitate to complain here if you find something else

I'm going to hold you to that!

thanks once again kerpondile, your work is appreciated.
Title: foo_queuecontents - View and edit queue
Post by: BobMopp on 2010-05-20 10:40:24
Yep, everything works as intended now!

I also have to thank you for your work, and your great and quick support! Thank you!
Title: foo_queuecontents - View and edit queue
Post by: nobbie on 2010-08-12 15:41:36
Hey,

is it somehow possible to configure the edge-style of the plugin when used with columns_ui? I'm especially interested in hiding the complete frame like possible with other panels.

Regards
Title: foo_queuecontents - View and edit queue
Post by: tweeny on 2010-08-14 15:39:07
I am sure this is asked before, but I can't find it, is there a option to see the complete play orders, not only the one you placed in the queue?
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2010-08-14 15:45:33
I don't understand what you mean with "Complete play orders"? The queuecontent displays the tracks added to queue - what else?
Title: foo_queuecontents - View and edit queue
Post by: tweeny on 2010-08-14 16:04:44
I mean that it will show your complete playlist in that list in the order it will play, not only the songs you add to the queue

I know my English is bad, but I hope you'll understand this
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2010-08-14 16:40:11
Why it should do so? The queuecontents component shows like the name says the content of queue. Why it should show a playlist which is already shown as  a playlist in foobar2000?
Title: foo_queuecontents - View and edit queue
Post by: Charuto on 2010-08-17 23:54:14
Is there a setting to make it so tracks are not removed from the list after they are played? I know it makes sense to remove them as they are no longer in the queue, but sometimes after a series of songs, I might think, "That was a nice sequence." and want to save it for a later date.
Title: foo_queuecontents - View and edit queue
Post by: mrinferno on 2010-08-18 02:05:00
since that defeats the fundamental purposes of the queue.

i would suggest perhaps utilizing foo_playcount (Playback Statistics), then you can create a History autoplaylist.
in fact, if you use the v3.0 beta (http://www.hydrogenaudio.org/forums/index.php?showtopic=82420) you don't even have to use the library.

something like this:
%last_played% DURING LAST 2 DAYS SORT DESCENDING BY %last_played%
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2010-08-30 17:27:01
@nobbie Configuration of edge styles is not possible. The edge style matches components on the Default UI side. Currently I'm not planning on implementing different edge styles since I think it just confuses people. (At least I was always confused about it when I was using CUI). I do know that a lot of CUI components allow this functionality but I think that's not the way to go.

To others (tweeny, Charuto) asking for "showing full playlist contents" or "not removing items": The component display only tracks in the foobar playback queue (as so many people have already explained here). The songs are automatically removed from the queue after they are played.

The component fulfills this purpose and I'm not planning on extending it in any way since that would just confuse people. It's important to understand that queue is a special concept in foobar and it's a bit different from other music players like Winamp.
Title: foo_queuecontents - View and edit queue
Post by: Krautmaster on 2011-02-23 17:41:03
does not work with 1.1.3 + newest colums Ui. If AutoSize is enabled the colums disappear after restart of foobar
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-02-24 16:28:08
Thank you for the (precise) bug report! The bug should be fixed in the latest version.

As always, auto-updater is the easiest way to update the component.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-05-04 13:56:36
Updated the component. Basically just rebuilt with the new SDK meaning that you will need at least foobar 1.1.
Title: foo_queuecontents - View and edit queue
Post by: DenisCool on 2011-05-04 14:48:15
Thank you for the component.

I found a bug - component window doesn't keep order of the reordered columns. Or is it feature?

0.4.1
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-05-04 16:56:38
Certainly not a feature

Can you tell me if you are using DUI or CUI? and which version of foobar?
Title: foo_queuecontents - View and edit queue
Post by: DenisCool on 2011-05-04 17:42:05
Certainly not a feature

Can you tell me if you are using DUI or CUI? and which version of foobar?

1.1.7 beta 1
DUI with SimPlaylist 1.0 beta 3 (if it matters)
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-05-14 23:41:10
Hello kerpondile,

i found a little bug/glitch in  the component: when i add a new ui-element, remove firstly the "queue item" column and then add another columns i get following:

(http://img856.imageshack.us/img856/6035/queueglitch.jpg) (http://img856.imageshack.us/i/queueglitch.jpg/)

One time i even had success to show the content of one column in the display of another.
Title: foo_queuecontents - View and edit queue
Post by: tg2k3 on 2011-05-16 17:08:42
Is there a setting to make it so tracks are not removed from the list after they are played? I know it makes sense to remove them as they are no longer in the queue, but sometimes after a series of songs, I might think, "That was a nice sequence." and want to save it for a later date.


%last_played% DURING LAST 1 DAY SORT DESCENDING BY %last_played%
Title: foo_queuecontents - View and edit queue
Post by: Dexter_prog on 2011-05-18 03:06:12
Is there any way to randomize/shuffle the contents of the queue (like one can in Winamp)? It's the feature I am missing the most since I moved from Winamp. And no, creating a new playlist for the queue is not an option. I only use one playlist that has all my mp3 files.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-05-20 07:06:22
New update! This should fix column reordering issues. Apparently the column ordering has always been broken (I went through old versions), hopefully it is fixed now...

q-stankovic: This release might fix your problem too.

Please comment if you still experience any problems.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-05-20 07:13:41
Dexter_prog: I suggest using queue playlist functionality (enable in settings) and then sorting the queue playlist using Edit->Sort->Randomize. No other way comes into mind.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-05-21 19:54:18
I have exactly the same result like in the screenshot. Using Dui and having the glitch in newset beta as also in older versions.
Here the steps how i can reproduce it: 1. remove queue contents editor from layout, 2. add it again, 3. add an song to the queue, 4. remove queue item column from ui-element, 5. add another column and the result can be seen in screenshot, 6. remove now this column, 7. add again another column, 8. you get three rows now (the rows consits of content of old columns), 9. do the steps as long as you like and you will have many rows.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-05-22 14:31:17
q-stankovic: Thanks for the detailed instructions. However, I (still) cannot reproduce this. I've tried adding the item to the queue using the context menu and by drag&drop (step 3) but still no luck. Using beta3, but I've tried it with beta 4 using layout scratchbox.

I'm quite clueless what this might be about. What OS are you using? Did you experience the issue with the old versions? (you can download them here https://sites.google.com/site/salskisite/foo_queuecontents) (https://sites.google.com/site/salskisite/foo_queuecontents)).

And a wild guess: is it possible that somehow the settings are not saved correctly? Are you using portable installation?
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-06-08 16:17:49
New version which fixes the bug mentioned by q-stankovic.
Title: foo_queuecontents - View and edit queue
Post by: venice26 on 2011-06-08 17:02:52
nice one, Ive been looking for a suitable component for displaying & editing queue for a while.
no problems with this one so far. thx!
Title: foo_queuecontents - View and edit queue
Post by: Gucci Mane on 2011-06-19 05:32:11
firstly, this component is one of my absolute favorites!!

i do, however, have a question: is there a way I can get %queue_total% to show up in the status bar in CUI?

I tried putting %queue_total% at the end of all the status bar code, but it shows up in the status bar as a question mark.

is there a way I can get fb2k to read that tag/property properly?

i'd really like for a text field somewhere to show, when a queue is present, this: "## songs currently queued"

or "## currently in queue"

is it possible to do this on the status bar or some place?
Title: foo_queuecontents - View and edit queue
Post by: Robertina on 2011-06-19 06:04:20
is it possible to do this on the status bar or some place?

Not in the status bar, but in a column, for example (as you wrote already) [%queue_indexes%'|'][%queue_total%] displays 2|10 (second queued track of ten).
Title: foo_queuecontents - View and edit queue
Post by: Dexter_prog on 2011-07-04 18:25:22
Dexter_prog: I suggest using queue playlist functionality (enable in settings) and then sorting the queue playlist using Edit->Sort->Randomize. No other way comes into mind.

today I tried this. I enqueued 4 albums by the same artist, chose the playlist created by queueucontents and set playback to "randomize", but the tracks were played following the queue order. Then I tried with all the shuffle options but it kept going by order, except that when I chose "shuffle (albums)" it played track 1 from album A, then track 1 from album B, etc
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-07-13 16:19:16
Please try using the "Edit->Sort->Randomize" menu option I suggested. Note that it is different from from shuffle options.

When the playlist is reordered, the playback queue is changed immediately to reflect the changes. Playback order follows the order of playback queue.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-07-26 21:47:17
A feature request:

Is it possible to have a variable that would let us create a column that shows us the source of the queued tracks - means: the name of the playlist from which the track was queued or nothing if track was queued from another source (library viewer).
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-07-27 19:32:02
q-stankovic: Good idea! I'm also thinking of  %list_index%, %list_total% in addition to %playlist_name%.

I will think about this for a while.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-08-09 19:06:28
New version released with additional formatting strings and some bug fixes.

As usual, the update is available through the auto-update system.

Quote
0.4.4. / 2011-08-09
* Bug fixes:
** Fields available in formatting strings (added by this component) are now case-insensitive as they should be, e.g. %QUEUE_INDEX% is same as %queue_index%.
* Improvements:
** Additional fields available in formatting strings: %playlist_name% (name of the queued playlist corresponding to queued item), %list_index% (index of the queued item in the queued playlist), %list_total% (total number of items in the queued playlist).
** Queue playlist functionality no longer identifies the queue playlist by name. This makes it safe to have other playlists with the same name as the queue playlist.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-08-09 19:54:35
Thanks, it looks nice! 
Title: foo_queuecontents - View and edit queue
Post by: zaede on 2011-08-12 10:06:58
I really like to use keybord shortcut. Now if i open the Queue Contens Editor can' t close it with Esc or Alt- F4 like it is normal in Windows. I use this frequently and it would be nice if this can be fixed.

Thanks Peter
Title: foo_queuecontents - View and edit queue
Post by: temporarylogin on 2011-08-22 01:04:53
Works like charm, thanks!    How about adding long forgotten option from queue manager, stop after queue ? Sometimes funny glitch occurs, and columns index / title / artist swap, but i cant remember at what circumstances, and returns to normal with next song.

@zaede - whats wrong with shortcut ? In configuration - > keyboard shortcuts -> add -> add to playback queue (context/playing) works for me. Or perhaps You wanted key shortcut for popup window (like winamp had if i remember correctly), then i cant help.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-08-22 06:07:39
@temporarylogin
www.saunalahti.fi/cse/foobar2000/


Title: foo_queuecontents - View and edit queue
Post by: zaede on 2011-08-22 18:11:40
Works like charm, thanks!    How about adding long forgotten option from queue manager, stop after queue ? Sometimes funny glitch occurs, and columns index / title / artist swap, but i cant remember at what circumstances, and returns to normal with next song.

@zaede - whats wrong with shortcut ? In configuration - > keyboard shortcuts -> add -> add to playback queue (context/playing) works for me. Or perhaps You wanted key shortcut for popup window (like winamp had if i remember correctly), then i cant help.


Nothing wrong with shortcut. To control foobar2000 I almost exclusively use the keyboard.
Now the problem, if I open the queue contents editor with "Strg-Q" I can`t close this window
with "Esc" and not even with Alt-F4". Any other window I can close with it. Like Plorg or Album List.
It`s standart in windows.

Now I hope you know what I mean.

Peter


Title: foo_queuecontents - View and edit queue
Post by: temporarylogin on 2011-08-24 14:59:51
@g-stankovic - thx - i'd never suspected that such old (2009) extension still works. What bothers me is that foobar plugins are scattered all over the web and takes lot of effort simply to search for them, someone should really group them in one place before it all turns into mess like miranda.

@zadede - yep i know what you mean, but i dont know any solution to this. Well, nothing really simple and sane. With insane solution you could get foo_run allowing to launch any program, and get some other software like "command line mouse click" and click into closing button ....but really...this seems way overhead  window should be made possible to be closed way you described, but hey, who am i to tell anybody to do it
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-08-24 19:04:52
What bothers me is that foobar plugins are scattered all over the web and takes lot of effort simply to search for them, someone should really group them in one place before it all turns into mess like miranda.

Every developer is free to add his components to the official components site.
Title: foo_queuecontents - View and edit queue
Post by: temporarylogin on 2011-08-24 20:16:21
And how many actually do that? How come, that even such popular components as ESplaylist & others are to be known only through browsing forum? Fine, some are in "experimental" versions, but amount of components needed to launch some skins, wsh ... maybe it's just me. But i find it confusing - some skins place themselves in skins, others in themes, components reside in components and user-components. I'm far from blaming anyone  quite opposite, i'm glad foobar society is so creative! Just a little disappointed that they make such chaos in that process  but anyway.
I'll quit this offtopic   
Last question though - You seem to know much more of foobar that I could easily find - is foo_audioscrobbler planned to have another update anytime? Not having a quick enable/disable scroobling is a serious drawback for me.
Title: foo_queuecontents - View and edit queue
Post by: db1989 on 2011-08-24 20:37:25
What bothers me is that foobar plugins are scattered all over the web and takes lot of effort simply to search for them, someone should really group them in one place before it all turns into mess like miranda.
Every developer is free to add his components to the official components site.
That’s a good point, and it’s obviously a good idea for the developer to maximise her/his potential audience. Another option would be for frequent users, with sufficient spare time, to keep an eye out for new components and update our Knowledgebase’s list of foobar2000 components (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components) accordingly. If I matched either criterion, I’d probably volunteer; but as it is, I’ll leave it open to someone else.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-08-25 17:25:00
zaede: I will implement this once I get the time. Just to be sure, you are referring to the "pop-up" window, right?
Title: foo_queuecontents - View and edit queue
Post by: zaede on 2011-08-25 22:13:11
zaede: I will implement this once I get the time. Just to be sure, you are referring to the "pop-up" window, right?


Yes the window you can open with View -> Queue Contents Editor.

Thank you, it would be really nice !


Peter
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-09-13 19:12:38
zaede: new version released with the feature
Title: foo_queuecontents - View and edit queue
Post by: zaede on 2011-09-13 22:39:02
zaede: new version released with the feature



Now very nice to work with. Just to open for a short check.

Thanks a lot. 
Title: foo_queuecontents - View and edit queue
Post by: natrixx on 2011-09-14 02:49:16
new version released with the feature

Great thanks, this plugin is perfect now
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-10-26 19:22:43
Found a bug:

(http://img98.imageshack.us/img98/6577/queuebug.jpg) (http://img98.imageshack.us/i/queuebug.jpg/)

The content of the fields switched: the column Source displays duration, column Duration displays title and so on. Unfortunately i can't tell how and when it happened or what i did when the bug occured. I just noticed it!

Edit
It seems that adding a track to queue and removing it from source  playlist is the reason when at same time a column with new fields (%playlist_name%, %list_index%, ...) is used in queue contents editor.
Title: foo_queuecontents - View and edit queue
Post by: Zarty on 2011-10-27 13:08:25
I am making good use of the Queue Contents Editor.  If it wasn't for this component, I honestly don't think I could use Foobar at all.  By the way, foo_stop_after_queue is pretty much essential too and works hand-in-hand with Queue Contents Editor. 

One small annoyance is drag and drop from playlist/panel into QCE (I am using Facets).  I noticed that you have to click once to highlight/select a track and then click again to drag the track into QCE.  If you just click once and try to drag the track, the track won't drag.  Similarly, I've had a few selection issue like this within the QCE itself when trying to drag and drop to alter a track's play order. 

Apart from these annoyances, thanks again!

Zarty
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-10-30 16:17:31
Zarty: thank you, it's always nice to hear positive comments!

The drag & drop behavior you described is in fact by design. I understand the behavior is non-windows-like but it is mimicking the behavior of foobar playlist. I think it is nice for the user that all UI components in foobar work the same.

q-stankovic: I could not reproduce the issue. Can you reproduce the issue every time?

What I did was:
1. Set up queue contents ui element using %playlist_name% tag
2. Add tracks to queue
3. Remove tracks from source playlist by delete

What happened is that %playlist_name% column turned into "?" with the deleted track (as expected).
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-10-30 21:40:08
After your step 3 continue step 4: reorder the qce columns by dragging around - at some point the content switches. Doing step 4 so far the bug appeared always for me. But i can't remember at all if i have reordered the columns before it happened the very first time for me.

I removed the tracks by context menu -> remove, if that matters.

@zarty
what annoys you is in fact a cool feature: you just have to click on any item holding down the ctrl-key and can easily make a multiple selection.
Title: foo_queuecontents - View and edit queue
Post by: Zarty on 2011-10-31 11:56:47
Quote
@zarty
what annoys you is in fact a cool feature: you just have to click on any item holding down the ctrl-key and can easily make a multiple selection.

Hmmm... Maybe I have not explained the behaviour correctly. Or maybe I'm missing something (again!).  In standard Windows, if you left-click once, you select the item.  However, as part of the same operation, you can drag the object somewhere else without having to click again.  In Foobar, you can left-click once to select, which is fine but to drag you have to left-click again.  Holding down the Ctrl-key for multiple selects (not necessarily in a contiguous block) is also a standard Windows feature.  So, I'm still not clear what the two left-clicks give me as payback in Foobar?  It's an extra operation, which is only an annoyance if it doesn't give me back something in return. Always willing to be educated!

Zarty
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-10-31 17:01:12
In standard Windows, if you left-click once, you select the item.  However, as part of the same operation, you can drag the object somewhere else without having to click again.
Yes, but you can't select multiple items without drawing a rectangle with the mouse beginning from outside or holding down ctrl. In foobar you just click a track and go down/up with the mouse to select multiple tracks. I wrote nonsense in my previous post: you don't have to hold the ctrl-key!

In standard Windows, if you left-click once, you select the item.  However, as part of the same operation, you can drag the object somewhere else without having to click again.
That's the price!

Holding down the Ctrl-key for multiple selects (not necessarily in a contiguous block) is also a standard Windows feature. So, I'm still not clear what the two left-clicks give me as payback in Foobar?
Selecting 15 items would mean 15 clicks. That are 14 clicks more than how it is - you are talking just about one click more!
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-10-31 17:21:18
q-stankovic: I can reproduce the issue now, thanks! I will look into it.

Zarty: I do agree with you that it's odd to have different selection/drag&drop scheme in foobar when compared to other "native" applications on windows. But it's not my place to side step from this practice. I think it's important that all foobar components follow the same "standard" that is implicitly set by the default user interface.
Title: foo_queuecontents - View and edit queue
Post by: Zarty on 2011-11-02 00:55:05
Quote
@zarty
what annoys you is in fact a cool feature: you just have to click on any item holding down ctrl-key and can easily make a multiple selection.

I think I now understand this.  For selections in Foobar, if you are selecting a contigious block of items, you can simple click on an item while holding down the shift-key and cursor up or down.  Yes, it's cool.  More key-strokes are required to do this in Windows.  However, I think it's the same in Foobar and Windows for non-contigious selections using the ctry-key.    In Foobar2000, having made the selections, another benefit is that the drag and drops that follow on can be done simply by clicking on any of the selected items and dragging them.  It's more tricky in Windows as the selection can easily be de-selected in the attempt to drag it.  However, if you're aim is just to drag and drop a single item in Foobar, it can initially seem a little odd that you have to click again to drag it but this is consistant with the multi-select behavior.  Overall, I can see the benefit.  It's not an annoyance any more. :-)

Zarty
Title: foo_queuecontents - View and edit queue
Post by: lucido on 2011-12-09 18:16:34
hi
it's very useful component
I've notice then items are add to queue by drag & drop  SimPlaylist and SimPlaylist Manager are not updated unlike using Ctrl+Q
thanks
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-12-11 08:56:08
lucido: Yes, how the SimPlaylistManager is related to this?

Could you please describe the problem in more detail. I could not reproduce the issue.

Also, please check that you are using the latest version of the Sim* components.

Thanks!

EDIT: Removed the reference to SimPlaylist Manager bug, it should be fixed already.
Title: foo_queuecontents - View and edit queue
Post by: auditorium on 2011-12-11 10:30:39
Thx for this plugin. 

A little improvement suggestions:

"Pop-Up" window, in right click "Context Menu" add item: "Move Up" and "Move Down" (for use with keyboard shortcuts, not with drag&drop)

Example:

Remove
Move to Top
Move Up
Move Down
Move to Bottom
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-12-11 11:13:23
It wouldn't do any harm to add the two commands: move up and move down. But they are unnecessary because you already can drag&drop items around what is clearly quicker than selecting tracks, opening the context menu, choosing a command to move the selection just one step down/up and repeating the last two steps several times. probably noone would move items around in such a way.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-12-11 11:49:33
auditorium: Thanks for the suggestion! This feature will be included in the next version.
Title: foo_queuecontents - View and edit queue
Post by: auditorium on 2011-12-11 12:04:09
Great thanks, kerpondile

Plugin will be perfect for me (and possibly for others) after implementation of the new suggestions.

To control foobar2000 I almost exclusively use the keyboard.

Thanks again.


Auditorium
Title: foo_queuecontents - View and edit queue
Post by: lucido on 2011-12-11 12:50:02
kerpondile : thanks for your answer
sorry to waste your time
sounds like something is broken on my Win7 or god know what else : same install work fine on another PC
and fresh install don't solve the problem : drag&drop items while track playing don't update Sim* custom columns ( %queue_indexes% / %queue_total% ) weird...
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-12-11 12:54:14
How do you use keyboard shortcuts to apply commands from the components context menu? Isn't that impossible?

@lucido
I have no problems with SimPlaylist. Does it work in SimPlaylists playing column?

Edit:

A little feature request since the component is able to show the queued items source: If the queued item still has source item in any playlist then a doubleclick on that item opens the playlist and selects the original item.
Title: foo_queuecontents - View and edit queue
Post by: lucido on 2011-12-11 13:47:54
@lucido
I have no problems with SimPlaylist. Does it work in SimPlaylists playing column?

no
but I have this issue only on a very old Pentium4 PC and only when I drag&drop while track is playing
solved by using Ctrl+Q
thanks
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-12-12 17:20:51
Auditorium: did you know that you can use ctrl+shift+arrow to move items in a queue already?

q-stankovic: I think double click is a bit misleading since in the playlist it would start playing the song. In Spotify, the queued tracks before the double clicked song are skipped, and the double clicked song starts playing.

I think the approach chosen in Spotify seems more right, what do you think?
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2011-12-12 17:33:02
I just like to jump to the origin track in playlist - a context menu item would be enouh for me. I think you are right that a doubleclick could be misleading. The spotify approach seems right to me but i don't think that the described behaviour is necessary in qce since it is simply achievable by removing the upper tracks. Sometimes it is a good idea that a doubleclick does nothing.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2011-12-12 17:45:05
q-stankovic: Yes, I agree. I'm going to implement as a context menu option.

EDIT: It seems this is not possible using the current foobar SDK (without "hacks"). Sorry!
Title: foo_queuecontents - View and edit queue
Post by: fuffi on 2012-01-02 04:39:57
i'd like to thank you for this component. :-)
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2012-01-07 11:45:38
Component updated to version 0.5!

The drag/drop of columns should be fixed for good now. Please inform me if it still bugs.

Here's the changed pieces:

Improvements:
- Addition of two new context menu options ("Move Up" and "Move Down"). Suggested by auditorium.
Bug fixes:
- Drag & Drop of columns fixed (again!). Tested quite thoroughly this time.
- Ctrl+Shift+Up/Down crashed when all the items were selected.
- Minor UI fixes regarding item selection and focus when opening context menu.
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2012-01-07 12:25:09
Thank you for maintaining that component and fixing bugs!
Title: foo_queuecontents - View and edit queue
Post by: karloz34 on 2012-01-08 01:44:23
How can I increase the numer of items that I can queue?
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2012-01-08 07:25:46
you can't!
Title: foo_queuecontents - View and edit queue
Post by: Koyber on 2012-02-11 11:45:59
Hi Kerpondile,
Could it be possible to remove the borders of the component in columns UI??

Thanks!
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2012-03-11 09:22:53
Koyber: With the newest version you can change the frame style of the component with CUI.
Title: foo_queuecontents - View and edit queue
Post by: Koyber on 2012-03-14 20:49:36
That's perfect now.
Thanks Kerpondile!!
Title: foo_queuecontents - View and edit queue
Post by: rawny on 2012-04-03 15:04:23
Koyber: With the newest version you can change the frame style of the component with CUI.

I was delighted to read this, although I'm having trouble activating it.

First things first, I'm running foobar on Ubuntu using WINE, which may mean this is a problem on the WINE end of things, although I don't think I've seen it anywhere else in foobar.

The problem is that when hovering over the top-level menu item "Frame Style >" it closes the (top-level) menu rather than opening the sub-menu. I am also unable to click on it to see if that behaves differently (as I can't click without hovering  )

I am able to use the "Show Column Header" item correctly though.

Just thought I'd flag this in case it may not be a WINE issue or anyone has any ideas, no worries if it's not solvable, I can live with the frame
Title: foo_queuecontents - View and edit queue
Post by: Dario on 2012-04-03 16:44:05
I'm sorry -- but how did you even manage to run Columns UI under WINE? As far as I know, it requires GDI+, which doesn't really work under GNU/Linux.

To put it another way -- are you certain that you are using Columns UI, and not the default UI?
Title: foo_queuecontents - View and edit queue
Post by: marc2003 on 2012-04-03 16:51:17
columns UI runs great under WINE. infact it's behaves much better than default UI which i find to be quite glitchy.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2012-04-03 17:21:46
@rawny, there might be something wrong with the sub menu since it looks quite ugly in Windows too (seems like it uses some ancient win style). In Windows though the menu is usable, at least on Win7. "Show column header" is different since it is not a sub-menu.

For now I don't have any ideas to make it better. Can you currently change the frame style?
Title: foo_queuecontents - View and edit queue
Post by: rawny on 2012-04-04 06:05:12
I'm sorry -- but how did you even manage to run Columns UI under WINE?

1337 skillz/hax 

columns UI runs great under WINE. infact it's behaves much better than default UI which i find to be quite glitchy.

Or that 


@rawny, there might be something wrong with the sub menu since it looks quite ugly in Windows too (seems like it uses some ancient win style). In Windows though the menu is usable, at least on Win7. "Show column header" is different since it is not a sub-menu.

For now I don't have any ideas to make it better. Can you currently change the frame style?

@kerpondle: Nope, unfortunately I am unable to do so. Whenever I hover to try an open the sub menu it just closes the whole menu 

Obviously this is a fairly unusual case, but if you do want some possible ideas (off the top of my head with feasibility not taken into account whatsoever):
Thanks for the response 


Title: foo_queuecontents - View and edit queue
Post by: Nadinus on 2012-05-22 19:41:32
Heya, thanks for creating this component.

I was just wondering if starting up a playlist is supposed to send all the subsequent songs to the Queue editor? Mine still shows up as blank when I start playing something. I can drag and drop new songs fine (which overrides the main playlist) but was expecting to see the playback queue?
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2012-05-23 19:53:20
@Nadinus, Thanks.

The feature you discribed is not the queue. Queue in foobar is a separate from "what's going to play next". Foobar by default provides context menu entries for adding or removing songs to/from the queue.
Title: foo_queuecontents - View and edit queue
Post by: Nadinus on 2012-05-23 20:55:13
@Nadinus, Thanks.

The feature you discribed is not the queue. Queue in foobar is a separate from "what's going to play next". Foobar by default provides context menu entries for adding or removing songs to/from the queue.


Oh okay, thought those were one and the same. Useful extension nevertheless
Title: foo_queuecontents - View and edit queue
Post by: lucido on 2012-06-25 10:27:13
hi, sorry to post again about this but I still have this issue on various recent PC:
drag&drop items while track playing don't update Sim* custom columns ( %queue_indexes% / %queue_total% / %isplaying% ...)
fresh install don't solve the problem
but deleting Core.cfg do ...for a moment
I can't reproduce this issue intentionally
see screenshot  : track 1 playing with custom animation like if(%isplaying%,....) , tracks 2, 4, 6 add by Ctrl Q showing %queue_indexes%/%queue_total%, tracks 3, 5 add by drag and drop showing nothing
(http://img4.hostingpics.net/thumbs/mini_499763Sanstitre.jpg) (http://www.hostingpics.net/viewer.php?id=499763Sanstitre.jpg)
thanks
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2012-06-26 17:16:11
@lucido Can you double check that you are using same versions of simplaylist, queuecontents foobar in all installations?

If that does not help, please save your layout and include only the simplaylist + queueditor ui components (side by side for example) and try to repeat the problem.

EDIT: SimPlaylist bug description on this (though should be fixed in the latest): http://www.hydrogenaudio.org/forums/index....mp;#entry754420 (http://www.hydrogenaudio.org/forums/index.php?showtopic=88412&st=0&pid=754420&#entry754420)
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2012-06-26 18:33:54
Hi kerpondile,

i have a small issue that is notr reproducable for me. The columns in ui-element sometimes get shortened or are overlapping, so that i for example just see 4 columns instead of the existing five so that i have to reorder and resize them till they fit again in whole ui-element.
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2012-06-26 18:36:08
@q-stankovic: If you know how to reproduce, please inform me, and I will look into it.

Could it be foobar crash or something causing the settings to reset or something?
Title: foo_queuecontents - View and edit queue
Post by: q-stankovic on 2012-06-26 20:37:48
No, it just happens from time to time and sometime i remark it then. I never was able to reproduce it and i believe ( i am not sure) it happened never a second time during a windows session. It's nothing terrible, no crashing but just annoying. I will see to find some time to reproduce it. As it happens on windows 7 and windows 8 with the same portable installation on one side and it never happened toy you on the other side it might be related to the DUI_layout in any way.
Title: foo_queuecontents - View and edit queue
Post by: Ifellgood on 2012-08-23 22:46:52
Hi !

Do I understand correctly that this special playlist "Queue" - lets just see all the songs, but run out of it to play a song by pressing the "ENTER" is impossible. ?
How do I make in this list "Queue", one would run the tracks as well as from any other playlist?
thanks!

UPD
incredible! I spent a whole day looking for how this is done, write here, and an hour later, partially solved the question.
I just further assigned "enter" on the "play" and made it a global hotkey.
Partyally solved, because Global hotkey - not quite what I need. But it works.
Title: foo_queuecontents - View and edit queue
Post by: db1989 on 2012-08-23 22:54:07
As I understood foo_queuecontents creates its own separate playlist (Queue)
No, the playback queue is not a playlist – “separate”, “special”, or otherwise. It is something completely different.

The queue is a hack-ish feature that accepts a limited number of songs and is used to interrupt a playlist. That is: If you populate the queue, then foobar2000 will wait until the current track in the current playlist is finished, then it will play the song(s) in the queue, then it will go back to where it should have been (i.e. where it was interrupted) in the original playlist.

And just as the queue is not a playlist, neither is it created by foo_queuecontents. Said component simply allows you to, as its description says, “[v]iew and edit [the] queue”. Without this or another manager, the queue can only have songs added to it – not removed, re-ordered, etc..

Quote
where I can send any of the tracks from other playlists - that to me is very suitable.
In the "Queue" get the songs we want to sing next.
It would probably be many times better to create a new playlist called Karaoke, Playlist-on-the-Go, or whatever and send songs to that from whichever UI/library viewer you are using.

Quote
Do I understand correctly that this special playlist "Queue" - lets just see all the songs, but run out of it to play a song by pressing the "ENTER" is impossible. ?
Again, it’s not a special playlist, or any playlist at all, so it’s unsurprising that it does not act like one!

Quote
How do I make in this list "Queue", one would run the tracks as well as from any other playlist?
Don’t use the playback queue. Use a separate playlist for your, well, list of songs to play.

Sometimes I think the queue would be better removed, or at least should be more hidden.
Title: foo_queuecontents - View and edit queue
Post by: Ifellgood on 2012-08-23 23:48:03
As I understood foo_queuecontents creates its own separate playlist (Queue)
No, the playback  .....  should be more hidden.

Thank you)
Title: foo_queuecontents - View and edit queue
Post by: Ifellgood on 2012-08-24 02:14:26
Quote
Quote

How do I make in this list "Queue", one would run the tracks as well as from any other playlist?

Don’t use the playback queue. Use a separate playlist for your, well, list of songs to play.

I rejoiced too soon
db1989, you're right. I do not need a "Queue" as a function, even though it works almost the way I want.
I need to add songs from any of the 15 playlists in one special playlist, for example call it "Go!", which is equivalent in functionality to other playlists.
But most importantly - do it all without a mouse. Only hotkeys.
Up to this point, I was able to realize almost all the functions that I need.
I need this special playlist called "Go!" , which were the songs that I chose in advance to be able to change their priority.
Without a mouse. That is something that I have at the moment with foo_queuecontents, but he plays one in the top of the list.
And I need to be able to start to play - any of the already selected tracks this playlist (Go!), as in any other of playlists.
I tried the function "send to playlist ..." - It's almost what we need, but there is an extra step: The program asks me which of playlists (15 pieces), I want to send a track.
How do I tell the program to send all of my tracks in one single, I have chosen, the playlist is called "Go!". ?
That's what I need. Is there a plugin with such functionality?)
Thanks!
Title: foo_queuecontents - View and edit queue
Post by: tpijag on 2012-08-24 03:23:13
foo_utils component may be of help

It will give you a nicer set of "send to/add to/insert into " options. They will be available in the right click context menu - buried within legacy commands at bottom of context menu.  HOWEVER, you will be able to use keyboard shortcuts and bind your GO playlist to one step keystroke. Select a track, hit your shortcut and it will be in your Go playlist
Download the Old but still Helpful component here (http://foosion.foobar2000.org/components/?id=utils&version=0.6.2+beta+6)
Title: foo_queuecontents - View and edit queue
Post by: Ifellgood on 2012-08-24 04:38:23
foo_utils component may be of help

It will give you a nicer set of "send to/add to/insert into " options. They will be available in the right click context menu - buried within legacy commands at bottom of context menu.  HOWEVER, you will be able to use keyboard shortcuts and bind your GO playlist to one step keystroke. Select a track, hit your shortcut and it will be in your Go playlist
Download the Old but still Helpful component here (http://foosion.foobar2000.org/components/?id=utils&version=0.6.2+beta+6)

Yes, this is it!
afigitelno.
No mice, only hotkeys, spe?ial playlist. Cool.
It does what I need.
Thanks!
Title: foo_queuecontents - View and edit queue
Post by: orlik on 2013-02-03 14:33:35
is there any possibility to show total queue time in this plugin?
Title: foo_queuecontents - View and edit queue
Post by: nikolai4ik on 2013-02-04 05:46:19
Any way to make the panel transparent?
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2013-02-11 17:45:15
@orlik: No such functionality is available.

@nikolai4ik: Not that I know of.
Title: foo_queuecontents - View and edit queue
Post by: ChoonyFish on 2013-10-24 13:15:18
I've got a folder with 109 songs in it, when I right-click and "add to playback queue" and then view the queue, only 64 tracks are there.

I'd like to be able to use the queue for a party playlist (tomorrow!) where I can re-order (and add to) the queue on-the-fly. 

Is there a max limit on the queue? 

Any ideas?
Title: foo_queuecontents - View and edit queue
Post by: BenB on 2013-10-24 13:22:24
Yes, the playback queue is limited to 64 items. The playback queue isn't meant to be used as a playlist.
Title: foo_queuecontents - View and edit queue
Post by: ChoonyFish on 2013-10-24 14:25:19
Yes, the playback queue is limited to 64 items. The playback queue isn't meant to be used as a playlist.


Ah, I see.  I wanted to use it as a playlist for a party as it's much easier to edit on-the-fly than a playlist.

Title: foo_queuecontents - View and edit queue
Post by: zoogleflatt on 2014-06-10 06:32:15
Hey I love this plugin... was exactly what I was looking for!!  It would be over-the-top-STELLAR if the "move up" "move down", etc. could be mapped to hotkeys!!  Please please pleasplepalselasppleaslpeas prettyplease lol
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2014-06-10 19:32:44
zoogleflatt: Thanks! You can actually move items up/down already! Just press ctrl+shift+up or ctrl+shift+down in the UI component (with some items selected)
Title: foo_queuecontents - View and edit queue
Post by: zoogleflatt on 2014-06-11 11:53:56
YESSSSSSSSSSS TYYY!!!   
Title: foo_queuecontents - View and edit queue
Post by: amnesiac77 on 2014-08-23 22:21:33
Hi,
I have a question. I added queue column to my playlist. It works fine, but with tracks that are not selected as queued, I get a question mark instead of blank space in that column.
Its supose to show a blank space. How can I fix that. I guess there is a script for that.
Also, how can I change the colour of that column?
I use latest foobar version with cloumnUE and defaul skin.
Regards
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2015-01-04 09:11:29
amnesiac77: It's a bit unrelated to this component but you can find details on syntax formatting in the wiki: http://wiki.hydrogenaud.io/index.php?title...de#Empty_Fields (http://wiki.hydrogenaud.io/index.php?title=User:Canar:Titleformat_syntax_guide#Empty_Fields) (See "Empty fields"). So all you need to do is use the square brackets to supress empty tag values.

Do not know about the column color... I think you should try out to ask it in a thread focused on columns ui.
Title: foo_queuecontents - View and edit queue
Post by: n99 on 2015-11-02 16:01:53
Found a bug in this component that leads to a foobar2000 crash, see this thread: https://www.hydrogenaud.io/forums/index.php?showtopic=110355 (https://www.hydrogenaud.io/forums/index.php?showtopic=110355)
Title: foo_queuecontents - View and edit queue
Post by: kerpondile on 2015-12-05 14:04:37
@n99 thanks for reporting the GDI leak -- I can confirm it with GDIView. I've been reviewing the code after this long pause... Can you try the experimental version from my github: github (https://github.com/ssalonen/foo_queuecontents/tree/gdi-leak-investigation/Release). The new version is built with newer libraries (latest foobar SDK, visual studio 2015 and WTL90 gui library) and hopefully includes some memory leak fixes.

However, not all are fixed according to my tests  Is this still usable for you?
Title: Re: foo_queuecontents - View and edit queue
Post by: mzso on 2016-08-20 11:11:19
Does this still work? I added the panel to columns ui, but it's always empty. Am I missing something?
Title: Re: foo_queuecontents - View and edit queue
Post by: kerpondile on 2016-08-20 11:25:52
Just to be sure, Do you have items in your playback queue?

The component just shows the queue, which is different from "what is going to be played next"?

But yeah, other users can probably comment whether the component still works for them. Personally I have not used it for a long time.
Title: Re: foo_queuecontents - View and edit queue
Post by: mzso on 2016-08-20 11:30:50
Just to be sure, Do you have items in your playback queue?

The component just shows the queue, which is different from "what is going to be played next"?

But yeah, other users can probably comment whether the component still works for them. Personally I have not used it for a long time.

Ah okay. I don't know what use is a playback queue then... I could just create a playlist of the files I want to play.
Title: Re: foo_queuecontents - View and edit queue
Post by: fuffi on 2018-11-26 17:49:08
Hi,
just to answer this 2 year old
But yeah, other users can probably comment whether the component still works for them. Personally I have not used it for a long time.
for the ones, who want to try this component.

I was curious how it would work and so I installed this component in f2k 1.4.1.

It works ok, but I had some glitches/lags with the activated options of foo_keep_queue "keep queue" and "keep queue on exit". When deactivating those options in the Playback menu of f2k, it worked better/faster.

The UI is nice and you can configure it as you wish, but why the hassle?

In 2018, I'm expecting some more fancy stuff to handle a playback-queue.
you need some other components to make the playback-queue feature more useful, like foo_queue_random or foo_play_next or some (https://www.foobar2000.org/components/tag/queue) other, I forgot about. However, the two mentioned components are very basic in their features, so don't expect great changes...

The component is far away from the (nowadays) intuitive queue-features of, say google's play or apple's itunes, or maybe any other modern player, and you probably install it only, because you thing it could be useful :) but it isnt. (no complaints here, just my usecase)

In the end (after 1h): It was no fun to play with, so I removed it.

Anyways, I'm more connected to the ways foobar2000 works with playlists.
If you use foobar2000, you don't really need a playback-queue-thingy, because, you. just. play. playlists. period. :)

From the Wiki: How do I have a Winamp style "now playing" playlist? (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:FAQ#How_do_I_have_a_Winamp_style_.22now_playing.22_playlist.3F)


Title: Re: foo_queuecontents - View and edit queue
Post by: kerpondile on 2018-11-26 19:44:51
I was curious how it would work and so I installed this component in f2k 1.4.1.

Thanks for testing it out, for what it's worth.

The component is far away from the (nowadays) intuitive queue-features of, say google's play or apple's itunes, or maybe any other modern player, and you probably install it only, because you thing it could be useful :) but it isnt. (no complaints here, just my usecase)

I'm sorry you got the wrong picture from the description. People have misinterpreted it before as well, e.g. here (https://hydrogenaud.io/index.php/topic,73648.msg690103.html#msg690103). In fact, the most recent post (https://hydrogenaud.io/index.php/topic,73648.msg926884.html#msg926884) (before you revived the thread) discussed the same topic.

So I'm not sure what you are after with this "rant". The component does what it is meant to do -- showing the internal playback queue of the player, which is normally hidden. User can also modify the order of queue items. Please note that the playback queue is actually feature of foobar itself, not introduced by this component. There are (or at least were years ago when I was developing this addon) various limitations with queue, e.g. maximum number of songs in the queue is very restricted.

I certainly agree that the way foobar handles queue is not matching the other music players. I remember when I switched to spotify ages ago -- it felt so alien but now it feels quite natural, and I have grown into it.

I bet it is untrivial to change the foobar is deciding the order songs to play, it's pretty much deep in the player. That's why you probably had hard time finding anything to make it "more modern".
Title: Re: foo_queuecontents - View and edit queue
Post by: Lesmo16 on 2019-07-16 19:05:40
... quite old thread ;) about a really fine component!

I've assigned some (context menu) commands to hotkeys:
<Alt+Q> for 'Add to Queue'
<Ctrl+Q> for 'Remove from Queue'
<Ctrl+Alt+Q> for 'Clear Queue'
They all work fine and correspond well with Queue Contents Editor UI element in my personal DUI.

<Shift+Q> is assigned to 'Queue Contents Editor' from main menu 'View'.
Unfortunately this assignment doesn't work as expected.
Instead of activating the Queue Contents Editor UI element, it opens the standalone Queue Contents Editor window.

Did I miss anything? Is there a workaround or a newer version than 0.5.1? Thanks in advance.
Title: Re: foo_queuecontents - View and edit queue
Post by: tokyonomad on 2020-01-28 04:16:56
I am trying to install "Ver.0.5.1" of "Queue Contents Editor" on foobar2000 (Ver.1.5.1).

I installed the "Queue Contents Editor" component in the "Preferences" dialog of foobar2000, and then set up the "Queue Contents Editor" in the "Preferences" dialog.

I checked the "Enable Queue Playlist Feature" checkbox and then set the "Playlist name" text area to a string "My favorite songs" that was different from the default string "Queue", and then clicked the "Apply" button.
However, in the "Playlist switcher" panel, the playlist for the playback queue was created with the default "Queue" name instead of "My favorite songs".

After that, in the "Preferences" dialog of foobar2000, I changed the name of the playlist for playback queue to "test" and clicked the "Apply" button. However, in the "Playlist switcher" panel, a new playlist "My favorite songs" was created, separate from the "Queue" playlist. Moreover, those "Queue" and "My favorite songs" playlists cannot be deleted from the "Playlist switcher" panel.

After that, I tried restarting foobar2000. Then a new playlist "test" was created in the "Playlist swtcher" panel...

... is this a bug?
Title: Re: foo_queuecontents - View and edit queue
Post by: kerpondile on 2020-01-28 04:50:13
Thanks for reporting this and clearly documenting the workaround as well.

Since the playlist feature is legacy (has been a decade now :)), I am not planning to pursue bug fixes for that.

Best
kerpondile
Title: Re: foo_queuecontents - View and edit queue
Post by: peersoft on 2020-01-28 07:56:58
Hi, I found this component by the end of the last year when invited to a party to perform as an amateur DJ. Equipped with f2K, external soundcard, computer and a braille display (I am blind) and this and other components installed, I had a great time enjoying this session as I browsed my premade playlists of various genres, sorted by BPM, placing songs one by one into a playback queue, or when I wanted to have a break, placed e.g. five songs to played in a row and when I realised their order in the queue was chosen wrongly or could be simply better I chose this Queue playlist and simply rearranged them. For me is much better choice than a separate panel or window. Many thanks to all who allowed me to have great success with this session.
Title: Re: foo_queuecontents - View and edit queue
Post by: arch21 on 2020-09-02 16:52:42
I realize no tooltip on long text with narrow column. Can you please fix this? Also is it possible aero style on selected item, like themed style on Column UI so they looked consistent on layout? Thanks
Title: Re: foo_queuecontents - View and edit queue
Post by: LosMintos on 2021-11-28 11:33:36
The component just shows the queue, which is different from "what is going to be played next"?
Sorry, if it's a dump question. I'd like to know, 'what comes next', e.g., in shuffle mode, and therefore I found and installed this component (foo_queuecontents; https://hydrogenaud.io/index.php?topic=103038.msg847651#msg847651).

However, the queue is empty. I find out, when I manually add a song to the playlist queue, it will be displayed in the queue. Fine.

Can you recommend a method to display the list of upcoming items in shuffle mode (perhaps for random mode, too, and of course it might work in default mode as well)?
Title: Re: foo_queuecontents - View and edit queue
Post by: The Link on 2021-11-28 12:03:18
You can select all the tracks in your playlist, then in the menu use "Edit > Sort > Randomize". Now you can play the playlist top to bottom and always see what comes next while having the same playback order that shuffle tracks would provide.
Title: Re: foo_queuecontents - View and edit queue
Post by: LosMintos on 2021-12-02 21:39:31
Great! Thanks!
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-03-31 08:20:57
Hello! Thank you for making this component.

Bug report:
The scrollbar in the Queue Contents list does not appear the right colors in dark mode.
Title: Re: foo_queuecontents - View and edit queue
Post by: MordredKLB on 2023-04-03 01:35:50
Hello! Thank you for making this component.

Bug report:
The scrollbar in the Queue Contents list does not appear the right colors in dark mode.
This component hasn't been updated in the last 8 years. It won't support dark mode unless somebody forks it and edits it releases a new version themselves.
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-03 02:48:50
Hello! Thank you for making this component.

Bug report:
The scrollbar in the Queue Contents list does not appear the right colors in dark mode.
This component hasn't been updated in the last 8 years. It won't support dark mode unless somebody forks it and edits it releases a new version themselves.
Aww, Thanks for the info.
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-04-03 03:02:52
Looks like the dev still browses the forums. You could try pinging them.
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-05 11:06:30
Uploading a picture of the visual bug.
Title: Re: foo_queuecontents - View and edit queue
Post by: kerpondile on 2023-04-05 16:26:56
Thanks for the ping.

Indeed I have "moved on" so to say. It's quite impossible for me to fix this but I can accept the fix via github (with build instructions) or alternatively just fork the code.
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-05 16:41:35
I see. Is the source code available somewhere? I'm not capable of any kind of programming right now, but maybe someone else would be able to if the code is there. Thank you for responding.  :)
Title: Re: foo_queuecontents - View and edit queue
Post by: kerpondile on 2023-04-05 16:44:19
Yes, please see first post
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-06 01:44:47
Yes, please see first post
Oh, I see it now. Derp. Thank you!
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-04-07 20:32:38
I made a quick and dirty replacement from scratch. It has limitations though....  :o

It has zero preferences and you cannot drag/drop tracks from library viewers/playlists on to it. Once items are queued the old fashioned way, you can manage the queue by multi-selecting and deleting, dragging to re-arrange etc. It should follow UI colours/fonts. It's fb2k 2,0 only so dark mode and 64bit are supported.

https://github.com/marc2k3/foo_queue_viewer/releases

Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-07 20:57:57
Being honest, the plugin I'm already using is basically perfect how it is. The only issue is cosmetic, and it only appears when I add like 10+ items to the queue. I can live.

Thanks for making a new one! I'll copy my (portable) install and try it, but I'll probably stick with the old one for now.
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-04-08 01:44:22
I didn't announce 1.0.1 but it had a terrible bug which would cause crashes if the playback queue was active before adding a panel to a layout. Yeah, I'm that stupid. It should now be fixed in 1.0.2

https://github.com/marc2k3/foo_queue_viewer/releases
Title: Re: foo_queuecontents - View and edit queue
Post by: Porcus on 2023-04-08 10:58:13
So, foo_queuecontents for 32-bit and foo_queue_viewer for 64? That's good.
(But if the former has source available and the author's blessing, would it be possible to just compile it for 64-bit fb2k?)
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-08 11:15:04
So, foo_queuecontents for 32-bit and foo_queue_viewer for 64? That's good.
(But if the former has source available and the author's blessing, would it be possible to just compile it for 64-bit fb2k?)
Seems like that is the case. My only problem with foo_queuecontents is lack of dark mode.
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-04-08 11:17:39
(But if the former has source available and the author's blessing, would it be possible to just compile it for 64-bit fb2k?)

64bit should be easy enough with the original code but I was put off touching it because it uses custom list control code which I have no idea how to style for dark mode. I'm only familiar with using the list controls included in the fb2k SDK which make it a doddle. The playback queue update/display was a nothing burger to rewrite. It's only a few lines of code. The only real challenge for me was supporting UI colours/fonts which took me awhile to figure out,
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-08 11:20:42
64bit should be easy enough with the original code but I was put off touching it because it uses custom list control code which I have no idea how to style for dark mode. I'm only familiar with using the list controls included in the fb2k SDK which make it a doddle. The playback queue update/display was a nothing burger to rewrite. It's only a few lines of code. The only real challenge for me was supporting custom colours/fonts which took me awhile to figure out,
The contents inside the queue list follow the colors I set in ColumnsUI. Only the scrollbar is a problem for me, although the column labels and options screen also don't use dark mode. Here's a screenshot with my problem in the lower right.
https://hydrogenaud.io/index.php?action=dlattach;topic=123942.0;attach=25186;image
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-04-08 11:33:33
Only the scrollbar is a problem for me

You sure do like repeating yourself. If you've had recent head trauma, you should get it checked out.
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-04-08 11:43:01
Only the scrollbar is a problem for me

You sure do like repeating yourself. If you've had recent head trauma, you should get it checked out.
My apologies. I do have some cognitive problems from medicine right now. My intent was to affirm that the contents don't seem to be a problem for dark mode, only the interface elements. It looked to me like you were saying the contents colors were a problem, but I may have misunderstood.

I appreciate your work on this.
Title: Re: foo_queuecontents - View and edit queue
Post by: n99 on 2023-05-06 00:22:20
I didn't announce 1.0.1 but it had a terrible bug which would cause crashes if the playback queue was active before adding a panel to a layout. Yeah, I'm that stupid. It should now be fixed in 1.0.2

https://github.com/marc2k3/foo_queue_viewer/releases

Your repository seems to be dead.
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-05-06 01:27:10
Yup, one of the shortest lived projects ever. But someone did upload a copy here....

https://hydrogenaud.io/index.php/topic,124091.msg1026369.html#msg1026369
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-06-30 19:15:09
Was there ever a 64-bit port made of this? I don't even care about the cosmetic problems with dark mode much anymore. Mostly I just want the utility this gives in 64-bit, particularly the way you can view the Playback Queue as its own playlist. It's sadly not possible for me to learn how to code right now.
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-11-18 18:19:24
There is a 64-bit port available.
I was looking for v0.5.2.1, it turned out I forgot I was running my own build.

New name and preferences... in that respect is sort of a new component.
Dark mode is not ready, though.

Queue Editor v1.0 (https://github.com/ghDaYuYu/foo_queue_editor/tree/master/Release)
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-11-19 01:25:51
Hi. @da yuyu

I downloaded "foo_queue_editor.fb2k-component" from this page. But I can't install it.
https://github.com/ghDaYuYu/foo_queue_editor/tree/master/Release

Information:
Could not load component "foo_queue_editor.fb2k-component": Unsupported format or corrupted file

It doesn't seem to be an archive.
foobar2000 v2.1 preview 2023-11-09 : 32-bit | 64-bit

Thanks.
Title: Re: foo_queuecontents - View and edit queue
Post by: cwb on 2023-11-19 18:30:21
There is a 64-bit port available.
I was looking for v0.5.2.1, it turned out I forgot I was running my own build.

New name and preferences... in that respect is sort of a new component.
Dark mode is not ready, though.

Queue Editor v1.0 (https://github.com/ghDaYuYu/foo_queue_editor/tree/master/Release)


Thank you for sharing the component!
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-11-21 08:28:45
...
I downloaded "foo_queue_editor.fb2k-component" from this page. But I can't install it.
https://github.com/ghDaYuYu/foo_queue_editor/tree/master/Release

Information:
Could not load component "foo_queue_editor.fb2k-component": Unsupported format or corrupted file
It doesn't seem to be an archive.
...

Hi @Air KEN,
It is working fine here...
Did you use the top-right corner button to download it?
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-11-21 08:38:45
Hi.

https://github.com/ghDaYuYu/foo_queue_editor
Code > Download ZIP > foo_queue_editor-master\Release\foo_queue_editor.fb2k-component
I have already installed it from here.

https://github.com/ghDaYuYu/foo_queue_editor/tree/master/Release
"foo_queue_editor.fb2k-component"
I asked a question because I was unable to install what I downloaded from this page.
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-11-21 09:23:40
Hello!  :)

The next release, hopefully, will be easier!  :D
Please, click on the second link above, then click the "foo_queue_editor.fb2k-component", a new page is loaded with the top-right download button.
Here is the direct link (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor.fb2k-component).




Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-11-21 09:27:29
Hi.
Optional requests:

Stop After Queue
Play Next
Keep Queue

Thanks.
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-11-21 13:48:30
My (admittedly abandoned) queue viewer can keep the queue and add items to the front of the queue.

If you like the additonal custom columns this queue editor provides, you can still use the functionality from queue viewer without an instance being present in your layout.
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-11-21 13:57:51
Hi. @marc2k3

> My (admittedly abandoned) queue viewer
hahaha...

Thank you for the useful component (queue viewer).
I thought it would be good for foobar users, not just me, to have a choice.
And I will introduce it to you.
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-11-21 14:08:15
I was thinking of making a proposal for removing the Queue Playlist Feature all together...
Would anybody miss it?
I am sorry, @Air KEN, about the play next.
Is it not what the fb2k playback forward button does?  :-[
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-11-21 14:19:16
Hi. @da yuyu
> I was thinking of making a proposal for removing the Queue Playlist Feature all together...
it's necessary.

This is the function of this component
https://www.foobar2000.org/components/view/foo_play_next

It is convenient for users to have useful functions all in one component.
Title: Re: foo_queuecontents - View and edit queue
Post by: regor on 2023-11-21 14:34:26
Hi.
Optional requests:

Stop After Queue
Play Next
Keep Queue

Thanks.
+1 Having the possibility to send things to the queue to the head (without clearing it) or the tail is really useful.

Quote
I was thinking of making a proposal for removing the Queue Playlist Feature all together...
Would anybody miss it?
Having the queue in a playlist becomes more useful when you add a playlist manager. For ex. with mine I can directly access to the context menu for the tracks, create clones of the queue as playlist files (for ex. to be used a a now playlist list for streaming) or even Smart Autoplaylists which use the queue as source.

So for me that feature seems pretty useful.
Spoiler (click to show/hide)
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-11-21 14:45:17
@regor
Thank you for your always wonderful script.

Users may want easy and convenient features.
User has been using the queue function for a long time and it also has useful functions.
It would be great if it was all combined into one component.
-----
The same can be said for other components.
User would like foobar2000 v2.x compatible components to be like this.
Title: Re: foo_queuecontents - View and edit queue
Post by: cwb on 2023-11-21 15:30:43
I like and use Kerpondile's Queue Contents Editor. So I will post my two cents worth:

In regard to the Queue playlist. I find it to be useful too.

As for the Stop after queue feature. I always keep the Stop after queue component (https://www.foobar2000.org/components/view/foo_stop_after_queue) activated/selected. I have never needed a toggle or visual indicator to let me know the component's current state. I can't speak for others obviously, but I suspect I am an average/typical user.

As for "keep queue", If I remember there is a component for that but having that built into an editor sounds like a  positive.
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-11-21 15:39:01
@cwb

> As for "keep queue", If I rememberr there is a component for that but having that built into an editor sounds like a  positive.

Already included in "Queue Viewer".
This is convenient.

Queue Viewer
https://hydrogenaud.io/index.php/topic,123942.msg1032506.html#msg1032506
Title: Re: foo_queuecontents - View and edit queue
Post by: fooball on 2023-11-21 18:19:11
I suspect I am an average/typical user.
Everybody thinks that.  What's your sample size?
Title: Re: foo_queuecontents - View and edit queue
Post by: cwb on 2023-11-21 20:21:28
I suspect I am an average/typical user.
Everybody thinks that.  What's your sample size?

Of course you are correct. In the future I will strive to not so carelessly generalise, and to be more precise in my observations.

The Keep Queue component (https://www.foobar2000.org/components/view/foo_keep_queue) has not been updated in a long time.

Ultimately whatever da yuyu decides to do with the Queue Editor component will be fine.
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-11-21 22:14:54
I like and use Kerpondile's Queue Contents Editor. So I will post my two cents worth:

In regard to the Queue playlist. I find it to be useful too.

As for the Stop after queue feature. I always keep the Stop after queue component (https://www.foobar2000.org/components/view/foo_stop_after_queue) activated/selected. I have never needed a toggle or visual indicator to let me know the component's current state. I can't speak for others obviously, but I suspect I am an average/typical user.

As for "keep queue", If I remember there is a component for that but having that built into an editor sounds like a  positive.
I often set a queue of often-unrelated music for listening before the player ultimately gets to a track in a particular album which I would like it to continue playing. The solution I finally found recently was built into Playlist Attributes - the "Stop after focused track" function. It lets me queue up as many tracks as I want, then keep playing from the final track in the queue until it plays the focused track. It is very flexible - much more so than a "Stop After Album" would be, or even "Stop After Queue", which I also tend to use a whole lot at other times. I require a visual indicator to know when it is or is not going to stop at a certain point, as sometimes I just let it keep playing.

The sample size has increased to 2.
Title: Re: foo_queuecontents - View and edit queue
Post by: cwb on 2023-11-21 22:34:22
@Cannonaire

Ok, I got you. You are saying that you find it helpful to have a visual indication of the on/off state of "Stop after queue". I am corrected.

Can I ask what you used to make the "indicator" buttons in the screenshot? Are you using Columns UI?
Title: Re: foo_queuecontents - View and edit queue
Post by: Cannonaire on 2023-11-21 23:30:02
Yes, Columns UI. I downloaded free icons for the buttons.
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-11-27 08:21:58
There is a new beta release available.

Requirements:
- fb2k v2 is now required.
- Best run in a new portable installation.
- Configuration is not v1.0 backward compatible.

What's new:
- Dark mode.

Known issues:
- 'Hide header' is no longer available in context menus.
- Issues related to enabling/disabling columns and column auto-resize.

I will review the latest posts after a short break...

Download: Queue Editor v2.0 beta (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.Beta.fb2k-component)

I hope you like it... thanks for your feedback!
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-11-27 19:22:44
Quick fix for wrong new field ID generation, causing unresponsive Apply and Remove button actions.

Queue Editor v2.0 Beta 2 (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.Beta 2.fb2k-component)
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-11-29 14:47:51
This new beta release fixes most issues related to the preference panel.
Final v2.0 should be almost ready.

Queue Editor v2.0 Beta 3 (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.Beta 3.fb2k-component)

Fixes:

- Preference page: Field add/remove actions revised.
- Preference page: Reset and Apply.
- Column auto-size revision.

Whats new:

- Preference page: New list control context menu.
- General preference page layout revisions.

Mixing fixed and auto-sized columns probably works unusually.
In order to set an auto-sized 'Queue item' field surrounded by two fixed-sized fields:

- Disable the context menu auto-size option.
- Remove all header columns.
- Add fixed-sized column 'Queue index'.
- Enable auto-size in the context menu.
- Add auto-sized column 'Queue item'
- Disable auto-size.
- Add a fixed-sized column 'Codec'.

Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-02 07:07:46
Queue Editor v2.0 Beta 4 (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.Beta 4.fb2k-component)

Fixes:
- More revisions on editing/reset/applying preferences.
- Drag and drop tracks from the Library View should now replicate the 'Add to playback queue' stock option.

What's new:

- 'Send to playlist' context menu options.
Title: Re: foo_queuecontents - View and edit queue
Post by: nikolai4ik on 2023-12-02 10:36:06
In the old version we could hide columns label completely, doesn't seem to be possible anymore?
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-07 12:22:38
Queue Editor v2.0 Beta 5 (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.Beta 5.fb2k-component)

- Show/hide column headers, @nikolai4ik.
- Keep queue when closing foobar2000 and save/restore context menu options, @Air KEN.
- 'Copy' context menu option.
- Misc fixes related to resetting and applying column configuration changes.
- Even more thoroughly tested.

Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-12-07 12:59:30
@da yuyu

> Keep queue when closing foobar2000 and save/restore context menu options

Thanks, But It disappears when I restart foobar. I don't think it's enabled. I may be using it incorrectly.

(https://i.imgur.com/cUZMaEB.png)

Should I click "restore" after restarting foobar? This is a "restore" function, right?
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-12-07 13:31:52
I had a quick glance at the code and saving the queue as JSON is.... odd. I'm too lazy to inspect deeply but it consider subsongs?

My implementation does because I save as fpl using...

Code: [Select]
try
{
playlist_loader::g_save_playlist(playlist_path, handles, fb2k::noAbort);
}
catch (...) {}

edit: code for restoring the fpl during on_init...

Code: [Select]
		void restore_playlist()
{
if (!is_file(playlist_path)) return;

pfc::string_list_impl list;
list.add_item(playlist_path);
static constexpr uint32_t flags = playlist_incoming_item_filter_v2::op_flag_no_filter | playlist_incoming_item_filter_v2::op_flag_delay_ui;
auto ptr = process_locations_notify::create([](metadb_handle_list_cref handles)
{
PlaybackQueueCallback::Scope scope;
auto plman = playlist_manager::get();
QueueList::add_handles_to_queue(plman, handles);
});

playlist_incoming_item_filter_v2::get()->process_locations_async(list, flags, nullptr, nullptr, nullptr, ptr);
}
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-12-07 16:03:19
delete
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-07 17:03:20
@Air KEN

You are welcome, thanks for your feedback.

The save-on-exit option can be set in the preference panel.
Next to the show/hide header currently having some refresh issues, btw.
Maybe 'Save now' and 'Restore last' would have been more accurate.

Loading back the queue on restart is done manually using the restore option mentioned above. Need to test both Queue Viewer and Editor trying to restore the queue simultaneously... I am not very keen on testing that atm.

@mark2k3

Thank you for the code snippets,
done it in 20 lines of code : )

You are right about subsongs, they are not supported. And JSON, a bit awkward... but easy to edit.
I code and test the component mostly dragging tracks from the Library View into the queue... not sure if 'orphan tracks' is the right term. I am just recently meet the t_playback_queue_item structure:

struct t_playback_queue_item {
   metadb_handle_ptr m_handle;
   t_size m_playlist,m_item;
}

I couldn´t find a way to query the SDK about subsongs contained in that structure. I guess I still have to wrap my head around a lot of basic fb2k stuff!
Title: Re: foo_queuecontents - View and edit queue
Post by: marc2k3 on 2023-12-08 09:23:08
get_subsong_index is a metadb_handle method.

https://github.com/jscript-panel/foobar2000-sdk/blob/fb73cfaa76c126c91da49c8d07b79303db3a06f2/foobar2000/SDK/metadb_handle.h#L160-L161

But you really don't want to go down that route for this. :/

---

For adding handles to the queue, I noticed adding from Album list and the like will add the playlist/item indexes if those items happen to be in the active playlist as well. I want to replicate that same behaviour when restoring from playlist or drag/drop and since there doesn't appear to be any "proper" way of doing that, I have highly inefficient fugly code which searches the active playlist for every handle. I don't know how else it can be done. At least the queue is limited to 256 items so I've not had any issues reported about it.

Code: [Select]
void QueueList::add_handles_to_queue(const playlist_manager::ptr& plman, metadb_handle_list_cref handles)
{
const size_t playlistIndex = plman->get_active_playlist();

for (auto&& handle : handles)
{
size_t playlistItemIndex{};
if (plman->activeplaylist_find_item(handle, playlistItemIndex))
{
plman->queue_add_item_playlist(playlistIndex, playlistItemIndex);
}
else
{
plman->queue_add_item(handle);
}
}
}



Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-09 15:59:01
thanks @mark2k3... also for another component I am looking for kind of the opposite, creating a metadb_handle given a path to a .cue and subsong index.

About the drag/drop, active playlist selections also seem to play a role in picking duplicate track positions.
As you say, it is nice about the 256-item limitation. There is also that after all fetching, some tracks might silently vanish from the queue on playlist deletion. NEIN in Queue Viewer might be related to that?

Finally, I tried to prevent duplicating queue items on start, having both Queue Viewer and Editor installed with the restore option on. Checked the queue size on different init stages, to prevent loading the queue twice without luck.
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-09 16:28:58
@Air KEN,
The 'Save and Restore' context submenu is now named 'Session queue' and contains 'Save now' and 'Restore last'.
The preference panel 'Save on exit' should now be fixed... it was using the 'Show column header' preference instead.
And finally, the 'Load on init' option has been added to the preference panel. Your feedback was spot on to fix/clarify this functionality, thanks again for that.

Queue Editor v2.0 Beta 6 (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.Beta 6.fb2k-component)

What´s new:
- Subsong saved to session queue JSON file.
- Load queue when foobar2000 starts.
- Context menu Columns submenu available in hidden header configurations.

Fixes:
- Most issues related to refreshing/repainting column headers.
- 'Save on quit' preference option setting not applying.
- Panel border style (CUI).
- Reordering items crashing after playlist deletion.
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-12-09 18:27:34
@da yuyu
Thank you for your valuable time and effort.

Context menu > Session queue > Save now / Restore last
Preferences > Tools > Queue Editor > Session queue: Load when fb2k starts / Save on exit Option

(https://foobar2000.xrea.jp/up/files/up1767.png)
(https://foobar2000.xrea.jp/up/files/up1768.png)

I don't know how to use it and the results, so I'll do some more testing.

foobar2000 menu > Playback > Flush playback > queue
    ↑ Is this also an option in Queue Editor?
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-09 19:00:04
@Air KEN

... not more than yours!   ???

All save and restore actions relates to the file <profile/configuration folder>foo_queue_editor.dll.dat.
It might help keeping it open in Notepad++ so that file updates can be easily reviewed.
The preference panel options are quite self explanatory ?
The context menu Session queue > 'Load now' and 'Save latest' do the same, but can be used at any moment, the preference panel options are the 'automated' versions.

Thanks for testing.
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-09 19:14:33
...
foobar2000 menu > Playback > Flush playback > queue
    ↑ Is this also an option in Queue Editor?

I would say that the equivalent would be to select and remove all tracks in the component list.
A context menu 'Remove all' might be added in next releases...
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-12-10 02:41:28
Quote
I would say that the equivalent would be to select and remove all tracks in the component list.
A context menu 'Remove all' might be added in next releases...
Thank you.
This is a Option of "Queue Viewer". I deleted "Queue Viewer" for TEST of "Queue Editor", but it seems to remain.
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-12-10 06:53:52
Option to stop after playing the last queue (Stop after queue).
Are there any plans to add this option?

Thanks.
Title: Re: foo_queuecontents - View and edit queue
Post by: grimes on 2023-12-10 07:03:07
https://www.foobar2000.org/components/view/foo_stop_after_queue
Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-12-10 08:55:35
@grimes
Thanks, Of course I know that Component and use it.

This is a continuation of a previous request.
Reply #290 https://hydrogenaud.io/index.php/topic,73648.msg1035439.html#msg1035439
"Is it possible to add options such as Stop after queue or Keep queue?"

This is a request to be included together.
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-12 21:24:22
Final Queue Editor v2.0 (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.fb2k-component) is now available.

Change log:

- Fixes queue list header line on startup.
- Fixes Queue playlist feature selection on startup.
- Context menu shortcut to 'Flush playback queue'.
- Context menu shortcut to foo_stop_after_queue (requires Stop after queue (https://www.foobar2000.org/components/view/foo_stop_after_queue)).

- Updated foobar2000 SDK.
- License upgrade to GPLv3.

Title: Re: foo_queuecontents - View and edit queue
Post by: Air KEN on 2023-12-13 07:02:51
@da yuyu

Many thanks.

Component is growing.
Title: Re: foo_queuecontents - View and edit queue
Post by: Porcus on 2023-12-13 13:16:22
@da yuyu :
fb2k crashes if I try to drag and drop a file into the Queue playlist. Tried the version you posted yesterday in reply #324 on 32-bit fb2k preview of December 11th.
Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 06A7AD7Dh
Access violation, operation: read, address: 76707C08h

Call path:
app_mainloop=>queuecontents_lock::query_items_add=>queue_helpers::queue_add_items p_base overload=>queue_helpers::queue_reorder
Title: Re: foo_queuecontents - View and edit queue
Post by: da yuyu on 2023-12-13 16:03:59
@Porcus

Thanks for reporting, this release should fix it.

Queue Editor v2.0.1 (https://github.com/ghDaYuYu/foo_queue_editor/raw/master/Release/foo_queue_editor_v2.0.1.fb2k-component)

Fixes:

- Crash trying to drag and drop a file into the Queue playlist.
- Wrong column content after showing/hiding column header fields.

Title: Re: foo_queuecontents - View and edit queue
Post by: Porcus on 2023-12-13 16:47:26
Tested without problem. Thanks!