mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 00:59:32 +02:00
code blocks
git-svn-id: svn://elaine/murooma/trunk@271 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
2cf7855261
commit
16ef1ae634
53 changed files with 2074 additions and 1759 deletions
|
@ -7,37 +7,37 @@
|
|||
class OggEncoder : public Encoder
|
||||
{
|
||||
public:
|
||||
OggEncoder(const SampleFormat& format);
|
||||
virtual double encode(PcmChunk* chunk);
|
||||
virtual HeaderMessage* getHeader();
|
||||
OggEncoder(const SampleFormat& format);
|
||||
virtual double encode(PcmChunk* chunk);
|
||||
virtual HeaderMessage* getHeader();
|
||||
|
||||
private:
|
||||
void init();
|
||||
void init();
|
||||
|
||||
ogg_stream_state os; /* take physical pages, weld into a logical
|
||||
ogg_stream_state os; /* take physical pages, weld into a logical
|
||||
stream of packets */
|
||||
ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */
|
||||
ogg_packet op; /* one raw packet of data for decode */
|
||||
ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */
|
||||
ogg_packet op; /* one raw packet of data for decode */
|
||||
|
||||
vorbis_info vi; /* struct that stores all the static vorbis bitstream
|
||||
vorbis_info vi; /* struct that stores all the static vorbis bitstream
|
||||
settings */
|
||||
vorbis_comment vc; /* struct that stores all the user comments */
|
||||
vorbis_comment vc; /* struct that stores all the user comments */
|
||||
|
||||
vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */
|
||||
vorbis_block vb; /* local working space for packet->PCM decode */
|
||||
vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */
|
||||
vorbis_block vb; /* local working space for packet->PCM decode */
|
||||
|
||||
ogg_packet header;
|
||||
ogg_packet header_comm;
|
||||
ogg_packet header_code;
|
||||
ogg_packet header;
|
||||
ogg_packet header_comm;
|
||||
ogg_packet header_code;
|
||||
|
||||
ogg_int64_t lastGranulepos;
|
||||
HeaderMessage* headerChunk;
|
||||
ogg_int64_t lastGranulepos;
|
||||
HeaderMessage* headerChunk;
|
||||
|
||||
int eos=0,ret;
|
||||
int i, founddata;
|
||||
int eos=0,ret;
|
||||
int i, founddata;
|
||||
|
||||
int32_t tv_sec;
|
||||
int32_t tv_usec;
|
||||
int32_t tv_sec;
|
||||
int32_t tv_usec;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue