diff options
Diffstat (limited to 'setedit/mp3/mpegsound/mpg_locals.h')
-rw-r--r-- | setedit/mp3/mpegsound/mpg_locals.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/setedit/mp3/mpegsound/mpg_locals.h b/setedit/mp3/mpegsound/mpg_locals.h deleted file mode 100644 index c8c7cac..0000000 --- a/setedit/mp3/mpegsound/mpg_locals.h +++ /dev/null @@ -1,57 +0,0 @@ -/* MPEG/WAVE Sound library - - (C) 1997 by Jung woo-jae */ - -// Mpegsound_locals.h -// It is used for compiling library - -#ifndef _L__SOUND_LOCALS__ -#define _L__SOUND_LOCALS__ - -// Inline functions -inline int Mpegtoraw::getbyte(void) -{ - int r=(unsigned char)buffer[bitindex>>3]; - - bitindex+=8; - return r; -}; - -inline int Mpegtoraw::getbits9(int bits) -{ - register unsigned short a; - { - int offset=bitindex>>3; - - a=(((unsigned char)buffer[offset])<<8) | ((unsigned char)buffer[offset+1]); - } - - a<<=(bitindex&7); - bitindex+=bits; - return (int)((unsigned int)(a>>(16-bits))); -}; - -inline int Mpegtoraw::getbits8(void) -{ - register unsigned short a; - - { - int offset=bitindex>>3; - - a=(((unsigned char)buffer[offset])<<8) | ((unsigned char)buffer[offset+1]); - } - - a<<=(bitindex&7); - bitindex+=8; - return (int)((unsigned int)(a>>8)); -}; - -inline int Mpegtoraw::getbit(void) -{ - register int r=(buffer[bitindex>>3]>>(7-(bitindex&7)))&1; - - bitindex++; - return r; -}; - -#endif |