Vorbis started on prettyprint
This commit is contained in:
parent
37df1716de
commit
9ed5a5e28c
4 changed files with 170 additions and 1 deletions
11
lib/ogg.cpp
11
lib/ogg.cpp
|
@ -299,6 +299,17 @@ namespace OGG{
|
|||
}
|
||||
offset += len;
|
||||
}
|
||||
}else if(codec == "vorbis"){
|
||||
r << "Vorbis Data" << std::endl;
|
||||
int offset = 0;
|
||||
for (int i = 0; i < getSegmentTableDeque().size(); i++){
|
||||
vorbis::header tmpHeader;
|
||||
int len = getSegmentTableDeque()[i];
|
||||
if (tmpHeader.read(getFullPayload()+offset,len)){
|
||||
r << tmpHeader.toPrettyString(indent + 4);
|
||||
}
|
||||
offset += len;
|
||||
}
|
||||
}
|
||||
return r.str();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue