Skip to content
Forum Archive

run visualization only in mp3 files

12 posts

koyland#

run visualization only in mp3 files

hi there there is any way that a visualization can be program only wen i play mp3 files an not mpg files
i see my videos on a tv but when i programm a visualization it runs too, making my machine very slow
sorry for my english is not my native lenguage
can some one help me??????😁
JaVS_v2.5#
sorry, you can't.. 🙂

i see my videos on a tv but when i programm a visualization it runs too, making my machine very slow
just disable the AVS window.
JaVS_v2.5#
When you're ready to play the mp3 files, enable the AVS window back so you can see the visualization. Sounds noob, but that's the only way, don't you get it? 😉
koyland#
i am not realy into programming but there is a way to make a visualization that detects the file extension???
like:
if *.mp3 then run oscilloscope
if not run warever...
in visual basic
sorry to be souch a pain but if you give me a north
mabe i can figure out how to do it
i have seen plug in that comunicate with the com port so i was wondering how they do it
thanks a lot
knight_wolves05#
Originally posted by koyland
i am not realy into programming but there is a way to make a visualization that detects the file extension???
like:
if *.mp3 then run oscilloscope
if not run warever...
in visual basic
I never try it, yet.
PAK-9#
no, not really. If your programming knowledge is too poor to identify the type of a file then tackling a problem like writing an entire music visualisation application will be well beyond you.

Alternatively if you were writing a plugin for winamp you would not be able to use VB, you would need to use C++ (unless you did some horrible hack to have a dll interface with a vb app.. dont even go there) and I believe the playlist entry can be read from somewhere fairly simply. I dont have the wa plugin source in front of me though.
jheriko#
you could download the avs source, and make a fork.

but here is what winamp gives a visualisation plugin:


typedef struct winampVisModule {
char *description; // description of module
HWND hwndParent; // parent window (filled in by calling app)
HINSTANCE hDllInstance; // instance handle to this DLL (filled in by calling app)
int sRate; // sample rate (filled in by calling app)
int nCh; // number of channels (filled in...)
int latencyMs; // latency from call of RenderFrame to actual drawing
// (calling app looks at this value when getting data)
int delayMs; // delay between calls in ms

// the data is filled in according to the respective Nch entry
int spectrumNch;
int waveformNch;
unsigned char spectrumData[2][576];
unsigned char waveformData[2][576];

void (*Config)(struct winampVisModule *this_mod); // configuration dialog
int (*Init)(struct winampVisModule *this_mod); // 0 on success, creates window, etc
int (*Render)(struct winampVisModule *this_mod); // returns 0 if successful, 1 if vis should end
void (*Quit)(struct winampVisModule *this_mod); // call when done

void *userData; // user data, optional
} winampVisModule;
still feel like trying it?

oh... i wont convert that into vb code because types like void* and void(*)(winampVisModule*) can't be replicated without a lot of understanding. if i just gave you that information, you would miss the point somewhat i think...
jheriko#
Yeah, you did miss the point. How will you get the information you desire from that data alone? You would need to suppliment it with hackery of some kind...