Exemplo n.º 1
0
        private void ReadSampleArray24(AByteArray aByteArray, int aBasePosition)
        {
            aByteArray.SetPosition(aBasePosition);

            for (int i = 0; i < format.samples; i++)
            {
                for (int j = 0; j < format.channels; j++)
                {
                    Int32 lSample = aByteArray.ReadInt24();
                    sampleByteArray[j][i] = ( sbyte )(lSample >> 16);
                }
            }
        }
Exemplo n.º 2
0
        private void ReadSampleArray24(AByteArray aByteArray, int aPositionSample)
        {
            aByteArray.SetPosition(basePosition + 3 * format.channels * aPositionSample);

            for (int i = 0; i < bufferLength && i < format.samples - aPositionSample; i++)
            {
                for (int j = 0; j < format.channels; j++)
                {
                    Int32 lSample = aByteArray.ReadInt24();
                    sampleArray[j][i] = ( float )lSample / ( float )Int24.MaxValue;
                }
            }
        }