Skip to main content
Recent Posts
1
Development - (fb2k) / Re: Trying to compile ASIO output plugin and...
Last post by Case -
- get_guid : I assume it's used to get guid of the output device
In g_get_guid() you return the GUID of your component. Use the Create GUID menu command in Visual Studio to generate your own.
Individual ASIO devices you would handle in g_enum_devices(). The callback has function on_device() which you call with the GUID and the name of each ASIO device.

- output constructor : in case of Asio, init (and open ?) the driver
Yes. The constructor will only be called when playback starts with your output.

- get_latency : seems to be used to know the length of sample to be played
But in which buffers samples are stored ? Is there some helpers functions ?
You return how many seconds the playback is delayed. This includes the amount of data you have buffered and the latency of the output, if you know it.
You allocate the buffer. Your constructor is told how many seconds of buffer user has requested so use that to calculate how many bytes you need.

- update : Which is the purpose ?? Also there is an on_update() function (currently commented in my impl)
You tell the core if you have space in your buffers to take more bytes. Once you have room in buffers and you inform the core, process_samples() will get called with new data.

Apart SDK, could somebody shows me sample code ?
There's saivert's pipe output. Though it doesn't do everything and doesn't calculate accurate latencies.
3
3rd Party Plugins - (fb2k) / Re: foo_beefweb - modern web interface
Last post by acepace -
Hey, quick question.

You support adding music files over a URL but in my weird case it doesn't work. I try to add a youtube URL, when I have the foobar Youtube component installed (foo_youtube).
Any chance you can take a look at it or tell me where to check in the source code?


5
3rd Party Plugins - (fb2k) / Re: Mark recently added album as 'NEW'
Last post by anamorphic -
Hi there,

Yes it is possible, although I use Default UI and Facets for this and I just put an icon next to newly added albums.

(However I'm not sure the second component below works with Columns UI? Try it and see. CUI might have its own global variables with current date info as someone mentioned here that you could use instead. I'm not familiar enough with CUI to know how that works so someone else might help there)

Firstly you need foo_playcount (Playback Statistics) which adds the %added% field (date added to the library). Note, if you do not have this component already, the %added% dates for EVERY track will be the same the first time you install it - see documentation here. Once you add new tracks the field will be correct going forward.

Secondly, I think default foobar does not have a way to access the current date/time (like a $now() function), so for that get foo_dynfil (Dynamic Fields). Install as usual. In foobar File menu > Preferences > Media Library > Dynamic Fields, click the plus button and name the field "new" (without quotes), click OK, then under 'Title formatting expression' put -
Code: [Select]
$date_diff(%added%)
Then click OK and I think you have to restart foobar at this point.

Finally just add this bit of title formatting to your Album List (File > Preferences > Media Library > Album List > Views) or (Facets > Columns), I personally put it after the %album% field -
Code: [Select]
%album%$ifgreater(%_new%,30,,  $char(57803))
The number '30' is how many days you want it to be considered "new". The '$char(57803)' part is the icon / font symbol I use from Segoe UI Symbol font (looks like a little tag, like on new clothes :D ), you can replace that with just "NEW" if you want although using an icon is more eye catching. If you want a different icon or use a different font, you could pick one from this handy page, click one to copy and paste. Lastly, note that if you swap %album% for %artist% the view will split the artist into two entries (old tracks and new tracks), this is why I use %album% instead as it can only be one or the other, but your choice.

Side note: I use a similar code to tag icons on to Podcasts, Music Videos, Internet Radio streams, etc -
Code: [Select]
%<genre>%$if($strstr(%genre%,Podcast),  $char(57814),)

Cheers 8)
6
General - (fb2k) / Re: Reading codec info in some video files
Last post by wcs13 -
OK, so your method works :) There is just one small problem that needs to be fixed before I can launch the big operation.

About 7 files out of the 3505 generate problems (I hope I haven't missed anything) :
- 676 : "Invalid TIFF header as EXIF data" => 676.txt is still OK, I have checked
- 1416 : "SEI type 5 size 5544 truncated at 5531" => 1416.txt is still OK
- 2159 : "Invalid frame dimensions 0x0" => 2159.txt has 3 lines : 1280x720, then an empty line, then again 1280x720
- 2383 : "Invalid frame dimensions 0x0" => 2383.txt has 3 lines : 1280x720, then an empty line, then again 1280x720
- 3379 : "Invalid frame dimensions 0x0" => 3379.txt has 3 lines : 1920x1080, then an empty line, then again 1920x1080
- 3388 : "Invalid frame dimensions 0x0" => 3388.txt has 3 lines : 1920x1080, then an empty line, then again 1920x1080
- 3416 : "No frame!" => 3416.txt is still OK

So maybe in your code, we should check if the error is "Invalid frame dimensions 0x0", and make sure the resulting .txt file still has only one line, not three.
Because the "out.txt" file needs to have exactly 3505 lines, no more, no less.
Could you help me with that please ?
8
General - (fb2k) / Re: [Minor UI Glitch] Tab Label's Text
Last post by anamorphic -
I had a look at mine with Segoe UI and nothing is cut off, I can see the bottom of the 'g' correctly on a non-active tab.

As a point of comparison, my Windows display scaling is 125% and I'm on Windows 10 v1803, and Segoe UI Regular font is version 5.55. I wonder if it might be the same issue that is effecting rating stars on 1809 or at least a similar glitch that was introduced.

9
General - (fb2k) / Re: [Minor UI Glitch] Tab Label's Text
Last post by Peter -
Bug confirmed, thanks for reporting.

However, it's not foobar2000 that is to blame, it's the standard Windows tab control which handles the text display and truncates the bottom of your letters - verified with other instances of the tab control. Any other app using the standard tab control will get the same bug.

I'll see if there's some way to work around (short of inventing own tab control....) this but don't keep your hopes up.
SimplePortal 1.0.0 RC1 © 2008-2018