Changeset 149 for libmpc/branches/r2d/mppenc/mppenc.c
- Timestamp:
- 11/23/06 19:17:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/mppenc/mppenc.c
r147 r149 1631 1631 1632 1632 e.MS_Channelmode = m.MS_Channelmode; 1633 e.seek_ref = ftell(e.outputFile); 1633 1634 writeMagic(&e); 1634 1635 writeStreamInfo ( &e, m.Max_Band, m.MS_Channelmode > 0, SamplesInWAVE, 1635 1636 m.SampleFreq, Wave.Channels > 2 ? 2 : Wave.Channels); 1636 1637 writeBlock(&e, "SI", TRUE); 1637 writeGainInfo(&e);1638 writeBlock(&e, "RG", FALSE);1639 1638 writeEncoderInfo(&e, m.MainQual, m.PNS > 0, MPPENC_MAJOR, MPPENC_MINOR, 1640 1639 MPPENC_IMPLEMENT, MPPENC_BUILD); 1641 1640 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 1641 e.seek_ptr = ftell(e.outputFile); 1642 writeBits (&e, 0, 8); 1643 writeBits (&e, 0, 32); // jump 40 bits for seek table pointer 1644 writeBlock(&e, "SP", FALSE); // reserve space for seek pointer 1645 1645 1646 1646 … … 1743 1743 1744 1744 // write the last incomplete block 1745 e.seek_table[e.seek_pos] = ftell(e.outputFile); 1746 e.seek_pos++; 1745 if ((e.block_cnt & ((1 << e.seek_pwr) - 1)) == 0) { 1746 e.seek_table[e.seek_pos] = ftell(e.outputFile); 1747 e.seek_pos++; 1748 } 1747 1749 writeBlock(&e, "AD", FALSE); 1748 1750 writeSeekTable(&e);
Note: See TracChangeset
for help on using the changeset viewer.