send sample format

git-svn-id: svn://elaine/murooma/trunk@238 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-09-06 12:54:15 +00:00
parent 989f986962
commit b61c6f0217
4 changed files with 22 additions and 5 deletions

View file

@ -5,18 +5,18 @@
#include <iostream>
SampleFormat::SampleFormat() : BaseMessage(message_type::payload)
SampleFormat::SampleFormat() : BaseMessage(message_type::sampleformat)
{
}
SampleFormat::SampleFormat(const std::string& format) : BaseMessage(message_type::payload)
SampleFormat::SampleFormat(const std::string& format) : BaseMessage(message_type::sampleformat)
{
setFormat(format);
}
SampleFormat::SampleFormat(uint16_t sampleRate, uint16_t bitsPerSample, uint16_t channelCount) : BaseMessage(message_type::payload)
SampleFormat::SampleFormat(uint16_t sampleRate, uint16_t bitsPerSample, uint16_t channelCount) : BaseMessage(message_type::sampleformat)
{
setFormat(sampleRate, bitsPerSample, channelCount);
}