Ok I want to do a simple spectrum analyser on the smartphone whilst playing an mp3.
the code i am using so far is basically this:
FSOUND_STREAM *Track = NULL;
FSOUND_Init(22050, 1, FSOUND_INIT_GLOBALFOCUS);
Track = FSOUND_Stream_OpenFile(“\Storage Card\Song.mp3”,FSOUND_2D,0);
SpectrumBuffer = FSOUND_DSP_GetSpectrum( );
and then get the values.
Can someone confirm if this is the correct way to do this?
When I activate the dsp my phone goes to a crawl and cannot operate.
Is there any where I can change the rate that it takes the samples to get this to run without so much cpu overhead?
Thanx in advance for any help.
- Anonymous asked 15 years ago
Soryy about this but i have looked at the fmodcesample that i have got and i can’t see any grpahical stuff apart from the drawing of the menus. Could you possibly post the bit of code that draws the waveform?
Thanx in advance.
Do you know which example uses this so I can have a look at it.
Basically all I am after is a piece of code that will give me say 20 values that i can use to draw a simple bar chart analyser. Once I have done this then all the other visualisations can be built from this.
Any chance of some sample code?
Also one question, what do you think I should have the buffer set as for the smartphone playing mp3 files. At the moment it is set at 2000ms, but I still find that it skips a few times in the song, Any way around this??
Thanx in advance..
Please login first to submit.