Changeset 147 for libmpc/branches/r2d/mppenc/mppenc.c
- Timestamp:
- 11/20/06 19:53:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/mppenc/mppenc.c
r137 r147 1631 1631 1632 1632 e.MS_Channelmode = m.MS_Channelmode; 1633 // e.BufferedBits = 0;1634 1633 writeMagic(&e); 1635 1634 writeStreamInfo ( &e, m.Max_Band, m.MS_Channelmode > 0, SamplesInWAVE, … … 1641 1640 MPPENC_IMPLEMENT, MPPENC_BUILD); 1642 1641 writeBlock(&e, "EI", FALSE); 1642 e.seek_ref = ftell(e.outputFile); 1643 writeBits (&e, 0, 32); // jump 32 bits for seek table pointer 1644 writeBlock(&e, "ST", FALSE); // reserve space for pointer 1645 1643 1646 1644 1647 // initialize timer … … 1722 1725 } 1723 1726 1724 // for backwards-compatibility with older decoders write the 11 bit for1725 // reconstruction of exact filelength before the very last frame1726 1727 1727 memmove ( Main.L, Main.L + BLOCK, CENTER * sizeof(float) ); 1728 1728 memmove ( Main.R, Main.R + BLOCK, CENTER * sizeof(float) ); … … 1743 1743 1744 1744 // write the last incomplete block 1745 e.seek_table[e.seek_pos] = ftell(e.outputFile); 1746 e.seek_pos++; 1745 1747 writeBlock(&e, "AD", FALSE); 1748 writeSeekTable(&e); 1749 writeBlock(&e, "ST", FALSE); // write seek table block 1746 1750 writeBlock(&e, "SE", FALSE); // write end of stream block 1747 1751 ShowProgress (&m, SamplesInWAVE, SamplesInWAVE, e.outputBits );
Note: See TracChangeset
for help on using the changeset viewer.