mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-07 05:11:43 +02:00
add clang-format file
reformat code
This commit is contained in:
parent
b733f646ea
commit
b20add3815
105 changed files with 7773 additions and 7723 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2018 Johannes Pohl
|
||||
Copyright (C) 2014-2019 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -19,36 +19,34 @@
|
|||
#ifndef OGG_ENCODER_H
|
||||
#define OGG_ENCODER_H
|
||||
#include "encoder.h"
|
||||
#include <vorbis/vorbisenc.h>
|
||||
#include <ogg/ogg.h>
|
||||
#include <vorbis/vorbisenc.h>
|
||||
|
||||
class OggEncoder : public Encoder
|
||||
{
|
||||
public:
|
||||
OggEncoder(const std::string& codecOptions = "");
|
||||
virtual void encode(const msg::PcmChunk* chunk);
|
||||
virtual std::string getAvailableOptions() const;
|
||||
virtual std::string getDefaultOptions() const;
|
||||
virtual std::string name() const;
|
||||
OggEncoder(const std::string& codecOptions = "");
|
||||
virtual void encode(const msg::PcmChunk* chunk);
|
||||
virtual std::string getAvailableOptions() const;
|
||||
virtual std::string getDefaultOptions() const;
|
||||
virtual std::string name() const;
|
||||
|
||||
protected:
|
||||
virtual void initEncoder();
|
||||
virtual void initEncoder();
|
||||
|
||||
private:
|
||||
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_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
|
||||
|
||||
vorbis_info vi_; /// struct that stores all the static vorbis bitstream settings
|
||||
vorbis_comment vc_; /// struct that stores all the user comments
|
||||
vorbis_info vi_; /// struct that stores all the static vorbis bitstream settings
|
||||
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_int64_t lastGranulepos_;
|
||||
ogg_int64_t lastGranulepos_;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue