Skip to main content


Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Recent Posts
3rd Party Plugins - (fb2k) / Re: Playlist Organizer (aka foo_plorg) replacement on Jscript Panel 3
Last post by iridescentaudio -
Loving the recent developments. Thanks!

Can you please tell me what do you do to have that error ? I'd like to try to reproduce it as it seems to work for me.

It's a weird one. After posting my previous message, auto-collapse was enabled and mostly functional, but I am still getting crashes.

I have recorded a video screencapturing the behaviour since it's much easier to demonstrate than try to explain, but I'll try to explain as well: the script crashes when opening specific folders directly after other specific folders (e.g. opening "Unsorted" after "Main", or "Formats" after "Stuff I'm doing" as shown in the video), then when I reload the script, the folder I previously selected to open is open as intended. Basically it's crashing but then once reloaded it's resolved, so no actual loss of function. I just can't find rhyme or reason for it. The error code given is different to what I quoted before but similar, so probably part of the same issue (and the error code stays the same regardless of which folder caused the crash):

Code: [Select]
JavaScript runtime error
Unable to get property 'pl' of undefined or null reference
File: C:\Users\Dave\AppData\Roaming\foobar2000-v2\pl_organizer\pl_organizer.js
Line: 59, Col: 3
3rd Party Plugins - (fb2k) / Re: Playlist Organizer (aka foo_plorg) replacement on Jscript Panel 3
Last post by frogworth -
That's right - and your suggestion works! Merci beaucoup  :D

The large number of playlists that I have is why I don't use the Playlist Organizer as my main switcher by the way (but it's still super useful for scanning through and showing me where I am).

With foo_plorg, when I focused on the Playlist Organizer I was able to just start typing the name of a playlist, and focus would jump progressively to the playlist, much like typing in a Windows Explorer window.
I suspect this is too hard to implement here, but it would be pretty awesome to have that capability!

Oh - and this is also why the "Sort" option for folders was so useful. I solved this by opening up pl_organizer.txt and (carefully) sorting the playlists there. So now that they're sorted in the panel, and changes will be easy enough to move into place individually.
Opus / Re: Help with sample rate issue
Last post by pauleffect90 -
Yeah. It has to do with the clock dividers. The numbers are correct.
48387 is closer, but if you ever want to play back with tempo adjustment, it goes in the opposite direction of the 16, so you cannot just give them all 0.5 percent in the same direction.

(Dumb question ... are your numbers correct? 48387/2 matches the number above it in the table, but not so in the left column?)

The numbers are correct. They re all tried and tested.
The problem lies in the fact that I can't use an "audio source clock" (something like 24.567 Mhz) to derive the sampling frequency. Because that clock doesn't work in deep sleep mode. So I'm stuck with a general purpose 24Mhz clock. That's divded by dividers A and B. A is between 2 and 4; B is between 2 and 16. And that's further divided by two and by the decimation rate (I'm using a PDM audio block).
Eg: 48000 Hz target sample rate: 24.000.000 / 2 / 4 / 2 / 31 ~ 48387 Hz (if I could use the *audio* clock, that would have been a clean 48.000 result).
If I could use the 24.567 Mhz clock, I'd get clean, standard audio sample rates. With the clock I'm stuck with, I can only get the values in the table (so far).

Just for clarification, because I understand pretty much 0 about how Opus works under the hood.
Is it ok to:

1. Feed Opus a 20 ms frame of audio sampled at 46875;
2. Lie to it that it's actually sampled at 48000;
3. On the PC side, decode the Opus bytes as if the audio was originally 48000;
4. Use a proper resampling algorithm to actually make it 48000?

If that's ok, my problem's pretty much solved.
General - (fb2k) / Re: foobar2000 v2.0 bugs
Last post by dore.moni -
Sorry for that. I asked you personally because you are professional developer and can diagnose this problem.
Porcus is incorrect. When volume in foobar is at max 0dB, foobar does not do internal processing and must output bits as they are in file. (if the intput of dac can accept it)

When  volume in foobar is at max 0dB and the file is 24bit it outputs bit-perfect as in file.
But if the file is 32bit integer foobar outputs it as 24bit simply by trunkating last 8bits. And the output is not bitperfect then.
So my question why it is so?

JRiver Media Center outputs 32bit integer as is at 32bit.
3rd Party Plugins - (fb2k) / Re: Playlist Organizer (aka foo_plorg) replacement on Jscript Panel 3
Last post by frogworth -
i'm sorry, didnt get it, what do you mean by "paints the border of the activePlaylist" ?

Apologies, I'll try to explain. Let's say you have playlist tabs, and you switch to a different playlist. Perhaps you have music playing in Default, but you switch to Michèle Bokanowski.
The panel will put a box around the active playlist's name in the panel. But it doesn't do so until you've actually clicked into the playlist.

What I often do is use ctrl+tab to change the active playlist. I don't necessarily use the mouse. I would like the active playlist to be displayed in the panel right away, if possible.

If this doesn't make sense I'll attempt a screen recording :)