Ignore:
Timestamp:
01/18/09 18:17:12 (15 years ago)
Author:
radscorpion
Message:

Demuxer updated to 0.4.0.0
Support for APE 2.0 tags
Chapters are now supported

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dsfilters/demux_mpc/src/mpc_file.h

    r379 r421  
    4040};
    4141
     42//-----------------------------------------------------------------------------
     43//
     44//      CMPCChapter
     45//
     46//-----------------------------------------------------------------------------
     47
     48class CMPCChapter
     49{
     50public:
     51
     52        int64                   sample_offset;
     53        float                   chapter_gain_db;
     54        float                   chapter_peak_db;
     55
     56        CString                 caption;
     57
     58public:
     59        CMPCChapter();
     60        virtual ~CMPCChapter();
     61
     62        int Load(CMPCPacket *packet);
     63};
    4264
    4365//-----------------------------------------------------------------------------
     
    6486
    6587        // replay gain
    66         float                   gain_title_db;
    67         float                   gain_title_peak_db;
    68         float                   gain_album_db;
    69         float                   gain_album_peak_db;
     88        float                                   gain_title_db;
     89        float                                   gain_title_peak_db;
     90        float                                   gain_album_db;
     91        float                                   gain_album_peak_db;
    7092
    7193        // seeking table
    72         int64                   seek_table_position;            // position of seeking table in file (in bits)
    73         int64                   header_position;                        // (in bits)
    74         uint64                  *seek_table;
    75         int64                   seek_table_size;
     94        int64                                   seek_table_position;            // position of seeking table in file (in bits)
     95        int64                                   header_position;                        // (in bits)
     96        uint64                                  *seek_table;
     97        int64                                   seek_table_size;
    7698
    7799        // current position
    78         int64                   total_samples;
    79         int64                   current_sample;
     100        int64                                   total_samples;
     101        int64                                   current_sample;
    80102
    81103        // internals
    82         CMPCReader              *reader;                                // file reader interface
    83         int                             bits_to_skip;                   // after seeking
     104        CMPCReader                              *reader;                                // file reader interface
     105        int                                             bits_to_skip;                   // after seeking
    84106
    85107        // buffer for decoder specific info
    86         uint8                   *extradata;
    87         int                             extradata_max_size;             // total size
    88         int                             extradata_size;                 // current size of extradata
     108        uint8                                   *extradata;
     109        int                                             extradata_max_size;             // total size
     110        int                                             extradata_size;                 // current size of extradata
    89111       
     112        // APE Tags
     113        APE_Tag                                 tag;
     114
     115        // chapters
     116        vector<CMPCChapter*>    chapters;
     117
     118
    90119        int Open_SV8();
    91120        int Open_SV7();
     
    96125        // I/O for MPC file
    97126        int Open(CMPCReader *reader);
     127        void ClearChapters();
    98128
    99129        // parsing packets
Note: See TracChangeset for help on using the changeset viewer.