0
0

Hi!

When searching the foras for information about VU-meters, the replies always refer to FSOUND_GetCurrentVU function, but I can’t find this function in latest release.

Can I use FSOUND_GetCurrentLevels instead?

In Delphi6, I have tried the following:

var
levelL, levelR: Single;
begin

// Inside Timer.OnTimer handler…

FSOUND_GetCurrentLevels(ChIndex, PlevelL, PlevelR);
LevelL := PLevelL^;
labelLevel.caption := floatToStr(LevelL);

This gives me Access Violation (I think it’s the LevelL := PLevelL^ that causes ist), but I don’t understand why?

Does anyone have a clue?

Regards / Jonas

  • You must to post comments
0
0

Thanks Brett!
Adding a single line solved the problem! (See below if interrested)
Regards / Jonas


var
levelL, levelR: Single;
begin

// Inside Timer.OnTimer handler…

PlevelL := @levelL; // < Adding this line solved the problem!

FSOUND_GetCurrentLevels(ChIndex, PlevelL, PlevelR);
LevelL := PLevelL^;
labelLevel.caption := floatToStr(LevelL);

  • You must to post comments
0
0

Please send me a simple solution for vu meter.
because i dont understand how can i use fmod.
Thank you very much!

grante@freemail.hu

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.