[quote="radicom":1jsae8cu]I do not manage to do that works I do not deal.
I am trying with the example Spectrum for vb but I do not manage to change the code to obtain the left-right of the audio level
Sorry for my bad english![/quote:1jsae8cu]
channeloffset is the parameter to change (Hope it’s called the same in the VB interface)
channeloffset – 0 is left (or mono if mono sound)
channeloffset – 1 is right
Call with 0 to get the left audio level
Call with 1 to get the right audio level
numvalues is the amount of data… Set up with 64 (the minimum allowed) for best speed…
Size of array in floating point values being passed to the function. Must be a power of 2. (ie 128/256/512 etc). Min = 64.
Channel of the signal to analyze. If the signal is multichannel (such as a stereo output), then this value represents which channel to analyze. On a stereo signal 0 = left, 1 = right.
I use FMOD_DSP_FFT_WINDOW_RECT
As for the buffer, I don’t know the VB interface so I can’t help you there…
[quote="radicom":bvwddt68]How can i get a peak level of an mp3 son at play? for implement a Vumetter in my music player.
Vu metter Similar like this image http://sound.westhost.com/p60.gif
Code is made in visual basic 6
GetSpectrum should do the trick. Use a small amount of data, should make a good indicator… You can average the set for display in one indicator or even display the entire frequency range in multiple indicators… (NOTE: do a Value[i] = max(0,min(1,Value[i])); on the result spectrum entries because in some instances some values may be negative or greater than 1)
Please login first to submit.