1
0
Fork 0
mirror of https://github.com/badaix/snapcast.git synced 2025-05-16 18:46:15 +02:00

move assign function into implementation

This commit is contained in:
badaix 2019-11-03 12:41:08 +01:00
parent 2657b439b2
commit 3fea89a60b
2 changed files with 11 additions and 7 deletions
server/encoder

View file

@ -27,6 +27,17 @@
#define ID_DATA 0x61746164
namespace
{
template <typename T>
void assign(void* pointer, T val)
{
T* p = (T*)pointer;
*p = val;
}
} // namespace
PcmEncoder::PcmEncoder(const std::string& codecOptions) : Encoder(codecOptions)
{
headerChunk_.reset(new msg::CodecHeader("pcm"));