Skip to main content
Recent Posts
Development - (fb2k) / Re: Visual Studio 2013-2017 compatibility notice
Last post by Case -
I think this is the wrong thread for your question, but I'd help if I could. I don't know what one has to do to trigger the errors you get.

But if you want to start by compiling the bundled sample component, you just load the solution file foo_sample.sln and hit Build Solution.
AAC - Tech / Re: Absolute best AAC quality with qaac
Last post by Makaki -
I understand what you want, even though it's probably overkill. But in a way it gives some sort of "personal" insurance.

If you will be using qaac and encoding stereo 44.1 kHz. I don't think you can go higher than 320 kbps.
Code: [Select]
>qaac64.exe --formats
LC 44100Hz Stereo -- 64,72,80,96,112,128,144,160,192,224,256,288,320

The last public AAC listening test @ 96 kbps (July 2011) on this site says:
Quicktime CVBR ~> TVBR ~>Fraunhofer > CT > Nero

Assuming that order holds true throughout the bitrate range, just pick the first one. It may vary well be possible that a codec that is bad at 96 kbps is actually the best one at 320 kbps, but that would require more testing.

And assuming higher bitrate is always better quality, you'd pick the highest option. Note that is probably overkill by a lot, especially considering how bad of a listening environment a car can be because of all the external noise.

So you are probably looking at something like:
Code: [Select]
qaac -v320 

But in order to get an optimal bitrate value, you'd have to test them yourself, and I'm sure this is what you don't want to dedicate time to. Personally I use 128 kbps. Apple's "iTunes Plus" preset uses 256 kbps. And other users can suggest other values.
General - (fb2k) / Re: QUERY SYNTAX | Search how many files within an Album
Last post by davideleo -
Now,... I don't think i'm going off topic by hopefully being able to have a way to find all files within my library that isn't formatted in (see below), so that way I can overview all tracks that isn't imported with this filenamingscheme:
Code: [Select]
%discnumber%-%totaldiscs%_%tracknumber%-%totaltracks% %title%

Well, as far as I can see, compared to the other two, this naming structure is characterized by the underscore, therefore you could simply query for all files with an underscore:
Code: [Select]
%filename% HAS _

But because your filename structure 1 and 2 might also show an underscore in the %title% part, it would be safer to run the query against the numeric part of the filename only:
Code: [Select]
"$substr(%filename%,0,$strchr(%filename%, ))" HAS _

As in my previous suggestion, I assumed the first occurrence of a blank space is always the one before the %title% part of the filename.
AAC - Tech / Re: Absolute best AAC quality with qaac
Last post by Deathcrow -
[near-lossless] fallback of sorts.

There's no such thing. A lossless archive is for transcoding, remixing, production or (re-)mastering. A high quality lossy encoding is no replacement in any of these scenarios.

In any case where you actually need lossless I can't see a lossy copy as a viable alternative, no matter what quality settings it has. I can only think of scenarios where you don't actually need lossless.
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.
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?
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.
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.
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>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?
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?
SimplePortal 1.0.0 RC1 © 2008-2018