Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Spectrum Analyzer plugin?

Discussing issues that occur during plugin development.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
jamesdoz
Plugin Author
Posts: 10
Joined: August 20th, 2005, 7:26 pm
Contact:

Spectrum Analyzer plugin?

Post by jamesdoz »

I'm creating a plugin to work with TCPlayer, my networkable media player (www.tcplayer.com).

I've got all the basic functions to work, but would like to add the spectrum analyzer output to my plugin.

Can anyone point me towards some info on how to do this? I need to know how to display blocks of different hieghts instead of characters.

Thanks in advance

IFR
Plugin Author
Posts: 201
Joined: April 6th, 2005, 12:59 am
Location: Canada
Contact:

Post by IFR »


jamesdoz
Plugin Author
Posts: 10
Joined: August 20th, 2005, 7:26 pm
Contact:

Post by jamesdoz »

That easy huh? :roll:

Thanks!

smack
Plugin Author
Posts: 21
Joined: July 12th, 2005, 8:42 am

Post by smack »

Perf plugin uses custom chars to draw graphs.
You can browse the source code online: CVS viewer (the interesting file is graph.cpp)

jamesdoz
Plugin Author
Posts: 10
Joined: August 20th, 2005, 7:26 pm
Contact:

Post by jamesdoz »

Hi,

I managed to get the custom characters to work, but the speed was terrible (I'm using the registry to communicate with the media player)

I've shelved the Sprectrum Analyser for now until I can work out how to speed up the link between the plugin and my media player (some kind of shared memory block?)

Thanks for your help anyway

smack
Plugin Author
Posts: 21
Joined: July 12th, 2005, 8:42 am

Post by smack »

jamesdoz wrote:I've shelved the Sprectrum Analyser for now until I can work out how to speed up the link between the plugin and my media player (some kind of shared memory block?)
Yes, shared memory seems to be a good idea.
The Winamp spectrum analyzer works this way. It consists of a plugin for Winamp which writes spectrum data into the shared memory and a plugin for LCD Smartie which reads spectrum data from the shared memory.

links:
Plugin download + instructions
source codes in CVS (winamp and winamp_lcdsmartie dirs)

IFR
Plugin Author
Posts: 201
Joined: April 6th, 2005, 12:59 am
Location: Canada
Contact:

Post by IFR »

Also make sure you set the dll check interval below 50 ms or so.

Jumpin' Jon
Plugin Author
Posts: 35
Joined: August 3rd, 2005, 12:34 am
Contact:

Post by Jumpin' Jon »

So, have you written a 2-part plugin... one part that plugs into WMP and another for Smartie?

Sounds interesting.

JJ

jamesdoz
Plugin Author
Posts: 10
Joined: August 20th, 2005, 7:26 pm
Contact:

Post by jamesdoz »

It's actually for a media player that I wrote called TCPlayer (http://www.tcplayer.com ) that allows the music to be controlled over a LAN.

I gave up on the VU meter because I couldn't get it running quickly enough and I didn't have time for a major re-write.

If anyone wants a copy of the plugin, feel free to ask.

Post Reply