Ignore:
Timestamp:
05/10/07 13:01:20 (17 years ago)
Author:
r2d
Message:

Added mpccut prog, sv8 files can now be cutted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcenc/encode_sv7.c

    r311 r317  
    103103                  const unsigned int  MS_on,
    104104                  const unsigned int  SamplesCount,
     105                                  const unsigned int  SamplesSkip,
    105106                  const unsigned int  SampleFreq,
    106107                                  const unsigned int  ChannelCount)
     
    114115        for( i = 0; i < len; i++) // nb of samples
    115116                writeBits ( e, tmp[i], 8 );
    116         writeBits ( e, 0, 8 ); // nb of samples to skip at beginning
     117        len = encodeSize(SamplesSkip, (char *)tmp, MPC_FALSE);
     118        for( i = 0; i < len; i++) // nb of samples to skip at beginning
     119                writeBits ( e, tmp[i], 8 );
    117120
    118121        switch ( SampleFreq ) {
Note: See TracChangeset for help on using the changeset viewer.