Skip to main content
Recent Posts
1
Support - (fb2k) / Playlist switcher does not respect playback order
Last post by Xunkar -
Hello. I've started using the playlist switcher provided with foobar but I've noticed that when I double click on one playlist, it will always start with the song that was currently playing from that playlist before following the playback order. This may sounds confusing so here's an example:

Imagine Playlist A contains tracks A1, A2 ... A9 and Playlist B contains tracks B1, B2 ... B9. I set my playback order on random. I double click Playlist A and A2 starts playing, then A7, as expected by my random playback order. Before A7 is done I switch over to Playlist B and track B5 starts playing. All fine until then, but if I switch back to Playlist A, A7 will systematically be played again instead of a random A track, and if I switch back to Playlist B I will get B5. Switching back once again to Playlist A will result in A7 being played once more...

I'd like to be able to switch playlist dynamically and get a new random track everytime I switch, if my playback order is random or shuffle that is. Of course I can switch to a playlist then immediately click the "skip" button, but I'd rather have it done automatically (and I'd expect it to behave this way). Is there anything that can be done? Thank you.
2
3rd Party Plugins - (fb2k) / Re: foo_sid
Last post by Akel -
songlength.txt includes every file in the STIL. I do not plan to write a way to modify the STIL documents. Storing the length in the tag only makes sense if I also offer a means to edit the length in the first place.
Ah, makes sense.
I wasn't thinking about writing THE length tag, though- My guess in how this works is that when the file is playback you check its checksum against the database, right? In that case I understand why is that proper length is only displayed when files are played. Loading that on boot would be a bottleneck if there were a lot of songs.
What I was wondering is, to be more exact, if you could make another tag ($SIDLength or something like that) that the plugin checks for upon loading SIDs into playlists, which you could add a menu option to write- either from Songlength.txt or with an user-inputted duration. That should use way less CPU time than checksums, right?
3
Support - (fb2k) / Re: Files could not be written (bad allocation) ERRORs
Last post by davideleo -
I tried halving all the values in the LargeFieldsConfig.txt file and now foobar2000 is using over 3000 MB of memory (5 times more than usual). Does that make sense?
No it doesn't. Perhaps you made a typo somewhere and disabled some spam fields for example. Unless that's just some one-time issue and restart of player solves that. Or it's a new bug. Please keep experimenting.

It was probably a one-time issue as you said. It took about half an hour to slowly, but constantly reduce memory usage to 8-900 MB, and never rise again. I'm pretty sure my memory usage issues are enhanced by the foo_customdb plugin, but they got a lot worse since I updated from beta 15 to beta 17. I'll experiment with both versions for a while and trace the differences.

P.S: After seeing several bad allocation warning as mentioned by the OP, I found out some of my playlists's content is actually lost.
4
General Audio / Re: What lossy format to use for Bluetooth transfer?
Last post by magicgoose -
Lossless codecs (which use some compression, like FLAC) for Bluetooth are pointless. A radio channel has a fixed maximum throughput, and lossless compression doesn't always compress (for reasons I hope I don't need to explain), so if a BT channel is wide enough to use lossless, it may as well use uncompressed PCM and save processing resources.
5
Development - (fb2k) / Re: Visual Studio 2013-2017 compatibility notice
Last post by davideleo -
I'm taking a second chance on learning c++, visual studio and component development. I don't know if Yirkha's tutorial still applies to the latest sdk and vs 2017. I followed his test project instructions and failed to build the project. These are the last lines of the debug output window:

Code: [Select]
1>Done building project "foobar2000_SDK.vcxproj".
4>------ Build started: Project: foo_whatever, Configuration: Debug Win32 ------
4>stdafx.cpp
4>j:\foobar2000\sdk-2018-03-06\foobar2000\sdk\advconfig.h(251): error C3861: 'get_static_instance': identifier not found
4>j:\foobar2000\sdk-2018-03-06\foobar2000\sdk\advconfig.h(256): note: see reference to class template instantiation 'advconfig_integer_factory_<int_t_>' being compiled
4>j:\foobar2000\sdk-2018-03-06\foobar2000\sdk\advconfig.h(252): error C3861: 'get_static_instance': identifier not found
4>Done building project "foo_whatever.vcxproj" -- FAILED.
========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I don't want to sound annoying, but if my question is too clueless to be answered, please let me know, so that I can deal with it. Elsewise, is there anything wrong with the advconfig.h file?
6
3rd Party Plugins - (fb2k) / Preprocessor best practices [JScript panel]
Last post by davideleo -
I learnt you can import your script as a preprocessor, rather than paste it in the configuration window. What I like about this method is I don't need to open foobar2000 to check or edit the scripts, and I always know I'm running the updated versions.
I wonder, though, are there any drawbacks to this practice? Does it affect code execution some how? What is the professional developers' advise?
8
AAC - Tech / Re: Absolute best AAC quality with qaac
Last post by shadowking -
It makes sense. OP says AAC / MP3 don't scale to lossless - that is true. Also OP probably wants 1 library : AAC or MP3 that plays anywhere. In this case overcoding ( 224.;.512k) gives headroom for rare problems and transcoding . This is proven and the spectrum can matter, even though lossless is prefered but to many it means multi libraries.

The other scenario is one may want to mainly deal in lossy mode, while maintaining an offline lossless archive. In the case the lossy is the daily workhorse. Should something happen to the lossless archive / hardware, the overcoded lossy provides a [near-lossless] fallback of sorts.
SimplePortal 1.0.0 RC1 © 2008-2018