Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
51 user(s) are online (46 user(s) are browsing Forums)

Members: 1
Guests: 50

trixie, more...

Support us!

Headlines

 
  Register To Post  

Need analog of FMOD's FSOUND_DSP_GetSpectrum , but by sdl_mixer, mikmod or modplug
Home away from home
Home away from home


See User information
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
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Need analog of FMOD's FSOUND_DSP_GetSpectrum , but by sdl_mixer, mikmod or modplug
Just can't stay away
Just can't stay away


See User information
@kas1e

we have this minifmod compatible library atleast. :)
i think minifmod was often used in intros.

http://www.os4depot.net/index.php?fun ... ry/audio/uniminixmlib.lha

Go to top
Re: Need analog of FMOD's FSOUND_DSP_GetSpectrum , but by sdl_mixer, mikmod or modplug
Home away from home
Home away from home


See User information
@spotUP

That is about i talk - stripped version of FMOD (very stripped). Only very few basic fucntions of that library are here (open/play/close). I need exactly function which can get specte from the current playng module (for making visual spectrum analazyer)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project