Ignore:
Timestamp:
01/03/08 23:50:40 (16 years ago)
Author:
radscorpion
Message:

Basic SV7 parsing. TODO: Construct seeking table.
!!! WARNING !!! If you compile this binary, you won't get any SV7 sound yet.

File:
1 edited

Legend:

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

    r367 r378  
    105105        inline void NeedBits24() { while (bits<24) { bitbuf |= (buf[0] << (24-bits)); buf++; bits+= 8; } };
    106106        inline void NeedBits32() { while (bits<32) { bitbuf |= (buf[0] << (24-bits)); buf++; bits+= 8; } };
     107
     108        // Musepack SV7 32-bit words
     109        inline void NeedBits32_MPC()
     110        {
     111                NeedBits32();
     112                uint8   tmp[4];
     113                tmp[0] = (bitbuf>> 0) & 0xff;
     114                tmp[1] = (bitbuf>> 8) & 0xff;
     115                tmp[2] = (bitbuf>>16) & 0xff;
     116                tmp[3] = (bitbuf>>24) & 0xff;
     117                bitbuf = (tmp[0] << 24) | (tmp[1] << 16) | (tmp[2] << 8) | (tmp[3]);
     118        }
    107119};
Note: See TracChangeset for help on using the changeset viewer.