add clang-format file

reformat code
This commit is contained in:
badaix 2019-09-24 22:42:36 +02:00
parent b733f646ea
commit b20add3815
105 changed files with 7773 additions and 7723 deletions

View file

@ -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