Subject:ReadAudio
Posted by: des griffiths
Date:11/20/2006 5:54:57 AM
There seems to be an issue with ReadAudio. Take these two cases: // Case 1 float[] sampleDataL = new float[ 20 ]; file.ReadAudio( sampleDataL, 0, 1, SfSampleType.Unknown ); float[] sampleDataR = new float[ 20 ]; file.ReadAudio( sampleDataR, 0, 2, SfSampleType.Unknown ); // Case 2 float[,] sampleData = new float[ 2, 20 ]; file.ReadAudio( sampleData, 0 ); The second case seems to work fine, however the first case works only for the left channel; the right channel read starts reading data into sampleDataR[1] instead of sampleDataR[0]. This can be more easily seen when the first sample value of the right channel of the input file is not 0 to begin with. (Note: this is true when the input file is 16-bit - I haven't tried any other bit-depths). Richard. |
Subject:RE: ReadAudio
Reply by: _TJ
Date:11/21/2006 6:35:44 PM
Thanks for the bug report. We'll put it on the list for Forge 9.0. tj |