kwave  18.07.70
OpusHeader.h
Go to the documentation of this file.
1 /*************************************************************************
2  OpusHeader.h - Opus stream header
3  -------------------
4  begin : Wed Dec 26 2012
5  copyright : (C) 2012 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef OPUS_HEADER_H
19 #define OPUS_HEADER_H
20 
21 #include "config.h"
22 
23 #include <QtGlobal>
24 
25 namespace Kwave
26 {
27  typedef struct {
28  quint8 magic[8];
29  quint8 version;
30  quint8 channels;
31  quint16 preskip;
32  quint32 sample_rate;
33  quint16 gain;
34  quint8 channel_mapping;
36  /* only present if channel_mapping != 0 */
37  quint8 streams;
38  quint8 coupled;
39  quint8 map[255];
40  } Q_PACKED opus_header_t;
41 }
42 
43 #endif /* OPUS_HEADER_H */
44 
45 //***************************************************************************
46 //***************************************************************************
quint8 version
Definition: OpusHeader.h:29
Definition: App.h:33
quint8 streams
Definition: OpusHeader.h:37
quint8 channel_mapping
Definition: OpusHeader.h:34
quint8 coupled
Definition: OpusHeader.h:38
quint16 gain
Definition: OpusHeader.h:33
quint8 channels
Definition: OpusHeader.h:30
quint32 sample_rate
Definition: OpusHeader.h:32
quint16 preskip
Definition: OpusHeader.h:31