Vorbis started on prettyprint
This commit is contained in:
parent
37df1716de
commit
9ed5a5e28c
4 changed files with 170 additions and 1 deletions
16
lib/vorbis.h
16
lib/vorbis.h
|
@ -8,9 +8,25 @@ namespace vorbis{
|
|||
public:
|
||||
header();
|
||||
bool read(char* newData, unsigned int length);
|
||||
int getHeaderType();
|
||||
long unsigned int getVorbisVersion();
|
||||
char getAudioChannels();
|
||||
long unsigned int getAudioSampleRate();
|
||||
long unsigned int getBitrateMaximum();
|
||||
long unsigned int getBitrateNominal();
|
||||
long unsigned int getBitrateMinimum();
|
||||
char getBlockSize0();
|
||||
char getBlockSize1();
|
||||
char getFramingFlag();
|
||||
std::string toPrettyString(size_t indent = 0);
|
||||
protected:
|
||||
uint32_t getInt32(size_t index);
|
||||
uint32_t getInt24(size_t index);
|
||||
uint16_t getInt16(size_t index);
|
||||
private:
|
||||
char* data;
|
||||
unsigned int datasize;
|
||||
bool checkDataSize(unsigned int size);
|
||||
bool validate();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue