Page 1 of 1

How to use de buffer of LiveAudioRecorder?

PostPosted: January 5th, 2009, 12:54 pm
by kokorini
First of all: Thank you very much for all, the components and for reading this.

I need to analize in real time the microphone input. I think I have to use the OnData event.

witch is:
procedure TForm1.LiveAudioRecorder1Data(Sender: TObject; const Buffer: Pointer;
BufferSize: Cardinal; var FreeIt: Boolean);

the data itself I understand is the parameter called "Buffer" witch is a pointer, but how can I get the content?
for example if you want to make an oscilloscope using the famous fft.

thank you very much!

Re: How to use de buffer of LiveAudioRecorder?

PostPosted: January 5th, 2009, 6:21 pm
by Kambiz
The data depends on the wave format you are using.
For PCM format, you can find some information at http://en.wikipedia.org/wiki/PCM