mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-08 12:17:57 +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
|
||||
|
@ -24,22 +24,20 @@
|
|||
class PcmEncoder : public Encoder
|
||||
{
|
||||
public:
|
||||
PcmEncoder(const std::string& codecOptions = "");
|
||||
virtual void encode(const msg::PcmChunk* chunk);
|
||||
virtual std::string name() const;
|
||||
PcmEncoder(const std::string& codecOptions = "");
|
||||
virtual void encode(const msg::PcmChunk* chunk);
|
||||
virtual std::string name() const;
|
||||
|
||||
protected:
|
||||
virtual void initEncoder();
|
||||
|
||||
template<typename T>
|
||||
void assign(void* pointer, T val)
|
||||
{
|
||||
T* p = (T*)pointer;
|
||||
*p = val;
|
||||
}
|
||||
template <typename T>
|
||||
void assign(void* pointer, T val)
|
||||
{
|
||||
T* p = (T*)pointer;
|
||||
*p = val;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue