View Single Post
 
Old 11-18-2019, 11:29 AM
oxygen oxygen is offline
Junior Member
 
Join Date: May 2018
Posts: 9
Default NewAC TAudioProcessor reading/copying data

Can anyone help me? I use library NewAC from Andrei Borovski. I want to read and process wave file. The used the editor demo called AudioProcessor where i use 16-bit mono wave. I have modified this to read complete file to proc.wave buffer. When all data are copied, I want to read them, but when I check them I found there are zeros in the file somewhere about offset 8000.

Can anyone test my project? I uploaded the project here:
https://sourceforge.net/projects/uc-heb/files/test/

File name:
https://sourceforge.net/projects/uc-heb/files/test/AudioProcessor-16bit-analyzer.zip/download

Library:
https://sourceforge.net/projects/uc-...C.zip/download

Help pages:
http://files.dreamdev.org.ru/_hdd/_p...x/General.html

I cound not find contact on Andrei Borovski - he refers to http://symmetrica.net/ and the email the will not be his current email.

The code:
Code:
         move(proc.wave[si], vals[0], readBytesCount);
         if (vals[0]=0) AND
            (vals[1]=0) AND
            (vals[2]=0) AND
            (vals[3]=0) then
          begin
          if ( proc.wave[si]=0 ) AND
             ( proc.wave[si+2]=0 ) then
             showmessage('Error');
          end;
Prints error because vals contains zeros.
Reply With Quote