HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: vfxcode on 2015-07-24 12:09:05

Title: Output Component Example?
Post by: vfxcode on 2015-07-24 12:09:05
Hallo,

I am trying to create an output component for foobar2000, mainly to connect it directly to JackAudio.
Seems however that documentation and example source is completly lacking in that area of component creation.

Does anyone have the source code for any working ouput component for foobar2000?

Thanks
Title: Output Component Example?
Post by: Zao on 2015-07-24 12:41:33
I believe that output components are one of the few things that are not exposed in the public SDK, as there's normally not much point in ever writing one not already existing.

Pulse/Jack are a bit unexpected things tho, and if you believe you can pull it through on an application level, you might want to ask Peter for access to the interfaces needed.
Title: Output Component Example?
Post by: vfxcode on 2015-07-24 13:15:26
Thanks for your reply.

I can't say that I can pull it through but I am willing to give it a serious shot.
JackAudio side seems well documented and shouldn't be a problem in implementing it. Overall should be relativly straight forward to make a plugin like that.
I also saw an OpenAL output component that connected to the DSP instead on the output. It does have the source code available.

How can I contact him?
Title: Output Component Example?
Post by: Zao on 2015-07-24 13:37:18
Nevermind, I was wrong about the availability. It was added to the SDK yesteryear, I just looked at the wrong branch myself 
Looking at my own copy, SDK/output.h (https://github.com/zao/foobar2000_sdk/blob/sdk2015-01-09/foobar2000/SDK/output.h), there's a healthy lack of comments indeed.

If you're unfamiliar with the foobar2000 SDK, it might be educational to write another kind of toy component first, to see how the factories and services interact.
Title: Output Component Example?
Post by: vfxcode on 2015-07-24 16:38:33
Yeah saw that as well....
Seems kinda hard to see what it does without an example.....

Yeah currently made a mini component and I am currently playing with stuff like preferences pages and how to save them... .