mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-24 22:46:14 +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
|
@ -143,7 +143,7 @@ bool OggDecoder::decode(msg::PcmChunk* chunk)
|
|||
}
|
||||
|
||||
|
||||
msg::SampleFormat OggDecoder::setHeader(msg::Header* chunk)
|
||||
SampleFormat OggDecoder::setHeader(msg::Header* chunk)
|
||||
{
|
||||
bytes = chunk->payloadSize;
|
||||
buffer=ogg_sync_buffer(&oy, bytes);
|
||||
|
@ -217,7 +217,7 @@ msg::SampleFormat OggDecoder::setHeader(msg::Header* chunk)
|
|||
/// in parallel. We could init multiple vorbis_block structures for vd here
|
||||
|
||||
|
||||
msg::SampleFormat sampleFormat(vi.rate, 16, vi.channels);
|
||||
SampleFormat sampleFormat(vi.rate, 16, vi.channels);
|
||||
return sampleFormat;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue