2
converts raw mpeg audio stream data into mpeg I encoded audio frames/packets
3
Copyright (C) 2001 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
15
#ifndef __MPEGAUDIOFRAME_H
16
#define __MPEGAUDIOFRAME_H
18
#include "mpegAudioHeader.h"
19
#include "../frame/framer.h"
23
Here we are framing from raw to mpeg audio.
29
class MpegAudioFrame : public Framer {
31
// max size of buffer is:
37
// maxsize: 4+144000*max(bitrate)/min(freq)+1 ca: 2931 byte
38
// then we add a "sentinel" at the end these are 4 byte.
39
// so we should be ok, with a 4KB buffer.
41
// internal, how much data we need to read
44
// internall, for header searching
47
// internal use for header parsing+validating
48
MpegAudioHeader* mpegAudioHeader;
57
int find_frame(RawDataBuffer* input,RawDataBuffer* store);
58
int read_frame(RawDataBuffer* input,RawDataBuffer* store);
60
void unsync(RawDataBuffer* store,int lReset);
61
void printPrivateStates();