mirror of
https://github.com/badaix/snapcast.git
synced 2025-09-19 20:42:42 +08:00
refactoring
git-svn-id: svn://elaine/murooma/trunk@328 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
@ -5,18 +5,21 @@
|
||||
#include <iostream>
|
||||
|
||||
|
||||
SampleFormat::SampleFormat() : BaseMessage(message_type::sampleformat)
|
||||
namespace msg
|
||||
{
|
||||
|
||||
SampleFormat::SampleFormat() : BaseMessage(message_type::kSampleFormat)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SampleFormat::SampleFormat(const std::string& format) : BaseMessage(message_type::sampleformat)
|
||||
SampleFormat::SampleFormat(const std::string& format) : BaseMessage(message_type::kSampleFormat)
|
||||
{
|
||||
setFormat(format);
|
||||
}
|
||||
|
||||
|
||||
SampleFormat::SampleFormat(uint32_t sampleRate, uint16_t bitsPerSample, uint16_t channelCount) : BaseMessage(message_type::sampleformat)
|
||||
SampleFormat::SampleFormat(uint32_t sampleRate, uint16_t bitsPerSample, uint16_t channelCount) : BaseMessage(message_type::kSampleFormat)
|
||||
{
|
||||
setFormat(sampleRate, bitsPerSample, channelCount);
|
||||
}
|
||||
@ -45,5 +48,7 @@ void SampleFormat::setFormat(uint32_t rate, uint16_t bits, uint16_t channels)
|
||||
frameSize = channels*sampleSize;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user