Archive: run visualization only in mp3 files


7th February 2006 11:01 UTC

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??????:D


7th February 2006 11:06 UTC

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.

7th February 2006 11:56 UTC

but that way i wil not see my visualization when i play mp3 files....


7th February 2006 12:10 UTC

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? ;)


7th February 2006 12:24 UTC

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


7th February 2006 13:17 UTC

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.

7th February 2006 13:19 UTC

sure its possible

but not in avs


7th February 2006 13:24 UTC

can you tell me more o less how pak9????????????


7th February 2006 13:56 UTC

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.


7th February 2006 19:02 UTC

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...

7th February 2006 22:25 UTC

thanks jheriko now i get it
i will try using c++
thanks a lot


8th February 2006 07:27 UTC

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...