mirror of
https://github.com/fmang/opustags.git
synced 2024-11-13 00:42:46 +01:00
create opustags.h
This commit is contained in:
parent
7fb5b49b81
commit
06520bf87e
@ -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
32
src/opustags.h
Normal 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;
|
||||
};
|
||||
|
||||
/** \} */
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user