Ignore:
Timestamp:
12/19/06 02:08:32 (17 years ago)
Author:
zorg
Message:

Fix mpcdec compilation for latest libmpcdec
Fix and update cmake build system (static libs only currently)
Use mpc booleans in mppenc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/mppenc/mppenc.c

    r161 r162  
    3636int           APE_Version     = 2000;
    3737int           LowDelay        = 0;
    38 Bool_t        EnableTags      = FALSE;
    39 Bool_t        IsEndBeep       = FALSE;
     38Bool_t        EnableTags      = MPC_FALSE;
     39Bool_t        IsEndBeep       = MPC_FALSE;
    4040
    4141#define MODE_OVERWRITE          0
     
    898898        }
    899899        else if ( 0 == strcmp ( arg, "beep")  ) {
    900             IsEndBeep = TRUE;
     900            IsEndBeep = MPC_TRUE;
    901901        }
    902902        else if ( 0 == strcmp ( arg, "scale") ) {                                       // ScalingFactor
     
    10431043        }
    10441044        else if ( 0 == strcmp ( arg, "writetags") ) {
    1045             EnableTags = TRUE;
     1045            EnableTags = MPC_TRUE;
    10461046        }
    10471047        else if ( 0 == strcmp ( arg, "lowdelay") ) {
     
    16331633        writeStreamInfo ( &e, m.Max_Band, m.MS_Channelmode > 0, SamplesInWAVE,
    16341634                                           m.SampleFreq, Wave.Channels > 2 ? 2 : Wave.Channels);
    1635         writeBlock(&e, "SI", TRUE);
     1635        writeBlock(&e, "SI", MPC_TRUE);
    16361636        writeEncoderInfo(&e, m.MainQual, m.PNS > 0, MPPENC_MAJOR, MPPENC_MINOR,
    16371637                                          MPPENC_IMPLEMENT, MPPENC_BUILD);
    1638         writeBlock(&e, "EI", FALSE);
     1638        writeBlock(&e, "EI", MPC_FALSE);
    16391639        e.seek_ptr = ftell(e.outputFile);
    16401640        writeBits (&e, 0, 8);
    16411641        writeBits (&e, 0, 32); // jump 40 bits for seek table pointer
    1642         writeBlock(&e, "SP", FALSE); // reserve space for seek pointer
     1642        writeBlock(&e, "SP", MPC_FALSE); // reserve space for seek pointer
    16431643
    16441644
     
    17451745                e.seek_pos++;
    17461746        }
    1747         writeBlock(&e, "AD", FALSE);
     1747        writeBlock(&e, "AD", MPC_FALSE);
    17481748        writeSeekTable(&e);
    1749         writeBlock(&e, "ST", FALSE); // write seek table block
    1750         writeBlock(&e, "SE", FALSE); // write end of stream block
     1749        writeBlock(&e, "ST", MPC_FALSE); // write seek table block
     1750        writeBlock(&e, "SE", MPC_FALSE); // write end of stream block
    17511751    ShowProgress (&m, SamplesInWAVE, SamplesInWAVE, e.outputBits );
    17521752
Note: See TracChangeset for help on using the changeset viewer.