Hi.
I am from Russia, and I small speak English.
I have a question.
Sample - It is a test audio visualization and audio recording test (link on source code I put below).
I am take a samples for recording audio from internet.
And I take a other source for audio visualization.
The imaging audio occurs on event "OnWaveIn".
My trouble:
On ditto event occurs and record audio.
So here is: if press on button "Record", that occur the error ("Access violation at address ..."), but if comment part of code:
{
WaveInAddBuffer(WaveIn, PWaveHdr(Msg.lParam),SizeOf(TWaveHdr));
data16:=PData16(PWaveHdr(Msg.lParam)^.lpData);
move(data16^[0],m,BufSize*2);
// if data16^[0]<>m[1]
// then showMessage('skipped');
}
that record goes orderly, but not vizualize wave audio.
If you are know to possible my problem, please ask me about solve trouble with combine the visual image audio and simultaneous its record.
Link to sample of source code: http://chaser.front.ru/WaveVizRecorder.zip
Thanks for your help!
Mersi )