Changeset 220 for libmpc/branches/r2d/mpcenc/mpcenc.c
- Timestamp:
- 02/17/07 18:49:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/mpcenc/mpcenc.c
r213 r220 1611 1611 writeMagic(&e); 1612 1612 writeStreamInfo ( &e, m.Max_Band, m.MS_Channelmode > 0, SamplesInWAVE, 1613 m.SampleFreq, Wave.Channels > 2 ? 2 : Wave.Channels, 0, 0, 0, 0); 1614 si_size = writeBlock(&e, "SI", MPC_TRUE, 0); 1615 writeEncoderInfo(&e, m.FullQual, m.PNS > 0, MPPENC_MAJOR, MPPENC_MINOR, 1616 MPPENC_IMPLEMENT, MPPENC_BUILD); 1613 m.SampleFreq, Wave.Channels > 2 ? 2 : Wave.Channels); 1614 si_size = writeBlock(&e, "SH", MPC_TRUE, 0); 1615 writeGainInfo ( &e, 0, 0, 0, 0); 1616 writeBlock(&e, "RG", MPC_FALSE, 0); 1617 writeEncoderInfo(&e, m.FullQual, m.PNS > 0, MPCENC_MAJOR, MPCENC_MINOR, 1618 MPCENC_BUILD); 1617 1619 writeBlock(&e, "EI", MPC_FALSE, 0); 1618 1620 e.seek_ptr = ftell(e.outputFile); 1619 1621 writeBits (&e, 0, 8); 1620 1622 writeBits (&e, 0, 32); // jump 40 bits for seek table pointer 1621 writeBlock(&e, "S P", MPC_FALSE, 0); // reserve space for seek pointer1623 writeBlock(&e, "SO", MPC_FALSE, 0); // reserve space for seek offset 1622 1624 1623 1625 … … 1724 1726 } 1725 1727 e.block_cnt++; 1726 writeBlock(&e, "A D", MPC_FALSE, 0);1728 writeBlock(&e, "AP", MPC_FALSE, 0); 1727 1729 } 1728 1730 writeSeekTable(&e); … … 1734 1736 fseek(e.outputFile, e.seek_ref + 4, SEEK_SET); 1735 1737 writeStreamInfo ( &e, m.Max_Band, m.MS_Channelmode > 0, SamplesInWAVE, 1736 m.SampleFreq, Wave.Channels > 2 ? 2 : Wave.Channels , 0, 0, 0, 0);1737 writeBlock(&e, "S I", MPC_TRUE, si_size);1738 m.SampleFreq, Wave.Channels > 2 ? 2 : Wave.Channels); 1739 writeBlock(&e, "SH", MPC_TRUE, si_size); 1738 1740 fseek(e.outputFile, 0, SEEK_END); 1739 1741 }
Note: See TracChangeset
for help on using the changeset viewer.