Fix indexing error in deinterleave code.

This commit is contained in:
Jonathan Moore Liles 2008-04-12 16:50:23 -05:00
parent 61c5707d01
commit fb94e119c4
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ Audio_File_SF::read ( sample_t *buf, int channel, nframes_t len )
rlen = sf_readf_float( _in, tmp, len ); rlen = sf_readf_float( _in, tmp, len );
/* extract the requested channel */ /* extract the requested channel */
for ( int i = channel; i < rlen; i += _channels ) for ( int i = channel; i < rlen * _channels; i += _channels )
*(buf++) = tmp[ i ]; *(buf++) = tmp[ i ];
delete tmp; delete tmp;