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.
Topic: Making a visulization component (Read 1690 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Making a visulization component

I'm trying to figure out how to get some values from Foobar2k and outputting it through serial to a microcontroller to control some RGB LED's to act like a spectrum analyzer. However with some digging around on the forums and SDK I can't seem to find a good place to start.

I also have a few other questions, I saw a post that I can only make components in Visual C++ (but the post was quite old), I usually use Code::Blocks with MinGW, is it still not possible to use that setup to make plugins for Foobar2k?

Thanks, Hopefully I can painlessly get what I need out of Foobar to make a cool display!

Is the visualization streamer, what I am looking for?

Making a visulization component

Reply #1
You're most probably going to have to use VC++, as the C++ mangling and ABI between mingw and MSVC are most probably not similar.
As for visualisation, create a visualisation_stream (or _v2/_v3 through visualisation_manager's create_stream function. Through that interface you can poll for the current time and query for PCM and spectrum data at particular times.

Code: [Select]
service_ptr_t<visualisation_stream_v3> stream;
  static_api_ptr_t<visualisation_manager> m;
  m->create_stream(stream, visualisation_manager::KStreamFlagNewFFT);
Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered.

SimplePortal 1.0.0 RC1 © 2008-2021