3
Copyright (C) 2000 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
14
#include "mpegAudioBitWindow.h"
21
int MpegAudioBitWindow::getCanReadBits() {
24
int bits=bytes*8+(bitindex&7);
25
cout << "point:"<<point
28
<<" bitindex:"<<bitindex<<" can read:"<<bits<<endl;
32
void MpegAudioBitWindow::wrap(void) {
34
point&=(WINDOWSIZE-1);
37
for(register int i=4;i<point;i++)
38
buffer[WINDOWSIZE+i]=buffer[i];
40
*((int *)(buffer+WINDOWSIZE))=*((int *)buffer);