For now we not have on aos4 well known
FMOD library, which widely used by win32/linux/macos demomakers for their prods like demos, intros, music disks, diskmags and alt. Also some game developers use that library too. Library are not opensource (only a few fucntions based small-strip version are avail, which will make no sense for us)
But full FMOD (which not opensource) have some nice features, which is offten used by demomakers, for example FSOUND_DSP_GetSpectrum. In code it looks like:
Quote:
float *spectre = NULL;
.. init fmod ..
// activating DSP
FSOUND_DSP_SetActive(FSOUND_DSP_GetFFTUnit(), 1);
spectre = FSOUND_DSP_GetSpectrum();
And then "spectre" value can be used for example by OpenGL for making visual spectrum analazyer, like this:
Quote:
glColor3f(fade*spectre[2],0,fade*spectre[0]);
So i need some kind of replacement, which will do the same, but by libs which avail on aos4.
Of course the best way, will be fucntion by function write FMOD analog for aos4, which will be based on any current music libs, but it's a bit complicated work for me, and because of it some kind of more or less easy solution will be very nice ..
I saw in SDL_Mixer a
Mix_RegisterEffect function with which you can set effects when an instrument is played. May be it could be used ?
Edited by kas1e on 2010/5/19 22:31:28