create opustags.h

This commit is contained in:
Frédéric Mangano-Tarumi 2018-11-03 16:52:58 -04:00
parent 7fb5b49b81
commit 06520bf87e
2 changed files with 35 additions and 7 deletions

View File

@ -1,5 +1,7 @@
#include <config.h>
#include "opustags.h"
#include <errno.h>
#include <getopt.h>
#include <limits.h>
@ -15,13 +17,7 @@
#define le32toh(x) OSSwapLittleToHostInt32(x)
#endif
typedef struct {
uint32_t vendor_length;
const char *vendor_string;
uint32_t count;
uint32_t *lengths;
const char **comment;
} opus_tags;
using namespace ot;
int parse_tags(char *data, long len, opus_tags *tags){
long pos;

32
src/opustags.h Normal file
View File

@ -0,0 +1,32 @@
/**
* \file src/opustags.h
* \brief Interface of all the submodules of opustags.
*/
#include <cstdint>
namespace ot {
/**
* \defgroup ogg Ogg
* \brief Helpers to work with libogg.
*/
/**
* \defgroup opus Opus
* \brief Opus packet decoding and recoding.
*
* \{
*/
struct opus_tags {
uint32_t vendor_length;
const char *vendor_string;
uint32_t count;
uint32_t *lengths;
const char **comment;
};
/** \} */
}