Added Opus::getPreSkip function
This commit is contained in:
parent
b496023d7f
commit
f8e9904e4e
2 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,11 @@
|
|||
|
||||
namespace Opus{
|
||||
|
||||
|
||||
uint16_t getPreSkip(const char * initData){
|
||||
return initData[10] + initData[11]* 256;
|
||||
}
|
||||
|
||||
unsigned int Opus_getDuration(const char *part){
|
||||
const char config = part[0] >> 3;
|
||||
const char code = part[0] & 3;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <string>
|
||||
|
||||
namespace Opus{
|
||||
uint16_t getPreSkip(const char * initData);
|
||||
unsigned int Opus_getDuration(const char *part);
|
||||
std::string Opus_prettyPacket(const char *part, int len);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue