Range check errors everywhere

23 views
Skip to first unread message

Molochnik

unread,
Sep 13, 2012, 3:10:20 PM9/13/12
to newac...@googlegroups.com

There are a lot of places in the code with no range checking and thus that can easily raise access violation exceptions and actually do this e.g.

...

function Compare4(S1, S2 : PAnsiChar) : Boolean;

function TAuInput.FillBuffer;

procedure ByteToSingle(_in : PBuffer8; _out : PBufferSingle; len : Integer);

..

I have tested library on common win files like "chimes.wav", "chord.wav", and got no problems only with the case of a simplest chain:

TWaveIn -> TWaveOut

 

Other choices like that:

TWaveIn -> TFastResample -> TWaveOut

TWaveIn -> TFastResample -> TAudioConverter1 -> TWaveOut

not to mention chains with TAudioMixer always raise “range checking” errors in various places

 

According to the AudioMixer help it is required to use almost the same input audio files so to concatenate two different voice files I need this chain to work

 

WaveIn1 -> FastResample1 -> AudioConverter1 ->|

                                                                                  | ->AudioMixer1 -> WaveOut1

WaveIn2 -> FastResample2 -> AudioConverter2->|

 

How can I do this?

Reply all
Reply to author
Forward
0 new messages