Autor Beitrag
chukalv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Mi 07.12.05 14:44 
How is it possible to determine the real-time sound level (peak level) for the line-in (microphone)?
I found a component FBVUmeter, but it didn` wotk on Delphi 6.




P.S. I understand german. Sorry about english.
Wishmaster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Sa 10.12.05 23:51 
with Bass.dll
www.un4seen.com/

You could take the RECTEST example as a starting point. +

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
procedure Get_VULevel(var L, R : Integer);
var VUCH : DWORD; LVU, RVU : integer;
begin
     VUCH := BASS_ChannelGetLevel(Channel);
     LVU := LOWORD(VUCH);
     RVU := HIWORD(VUCH);

    L:= LVU; 
    R:= RVU; 
end;

procedure TMain_Form.VU_TimerTimer(Sender: TObject);
var l, r: integer;
begin
  //L_VU, R_VU = TProgressBar;


   Get_VULevel(l, r);
   L_VU.Position:= L ;
   R_VU.Position:= R ;
  end
end;