0
0

Although I am trying to implement it using fpc. I was wondering if somenone has succedded
making a working VU based on GateWaveData.
Brett had promised a tutorial on that but nothing so far.
I would really appreciate if someone posted a small example of such a thing even in c++.
Also, in the pascal implementation wavarray is defined as a single? not an pointer to an array of singles? It seems that
the only workaround is to use

wavearray: array [0..512] of single;
FMod_Channel_GetWaveData(Mychannel, wavearray[0], 512, 0);

but then how are the rest array elements get filled? I would like an explanation please…

Thanks in advance

Stavros

  • You must to post comments
0
0

Well Ok Brett, I have managed to make things (vu implementation) work under lazarus-linux.
A very strange thing happens though, the visualization peaks are faster than the actual sound. I have put Getwavedata in a timer (approx 150-200 ms) and peaks are displayed just before the actual sound peaks (I had to put a delay arround 100ms in the timer procedure to make them synchronize).

Any ideas?

Stavros

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.