mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 09:56:16 +02:00
made SampleFormat not inherit from BaseMessage
This commit is contained in:
parent
eed7f287fb
commit
c4094a2175
18 changed files with 25 additions and 63 deletions
|
@ -63,7 +63,7 @@ bool PcmDecoder::decode(msg::PcmChunk* chunk)
|
|||
}
|
||||
|
||||
|
||||
msg::SampleFormat PcmDecoder::setHeader(msg::Header* chunk)
|
||||
SampleFormat PcmDecoder::setHeader(msg::Header* chunk)
|
||||
{
|
||||
if (chunk->payloadSize < 44)
|
||||
throw SnapException("PCM header too small");
|
||||
|
@ -112,7 +112,7 @@ msg::SampleFormat PcmDecoder::setHeader(msg::Header* chunk)
|
|||
if (chunk_fmt.sample_rate == 0)
|
||||
throw SnapException("Sample format not found");
|
||||
|
||||
msg::SampleFormat sampleFormat(
|
||||
SampleFormat sampleFormat(
|
||||
chunk_fmt.sample_rate,
|
||||
chunk_fmt.bits_per_sample,
|
||||
chunk_fmt.num_channels);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue