mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 06:27:12 +03:00
catching up (trying to) wiht CSpot
This commit is contained in:
@@ -10,16 +10,17 @@ AudioChunk::AudioChunk(uint16_t seqId, std::vector<uint8_t> &audioKey, uint32_t
|
||||
this->startPosition = startPosition;
|
||||
this->endPosition = predictedEndPosition;
|
||||
this->decryptedData = std::vector<uint8_t>();
|
||||
this->isHeaderFileSizeLoadedSemaphore = std::make_unique<WrappedSemaphore>(2);
|
||||
this->isLoadedSemaphore = std::make_unique<WrappedSemaphore>(2);
|
||||
this->isHeaderFileSizeLoadedSemaphore = std::make_unique<WrappedSemaphore>(5);
|
||||
this->isLoadedSemaphore = std::make_unique<WrappedSemaphore>(5);
|
||||
}
|
||||
|
||||
AudioChunk::~AudioChunk()
|
||||
{
|
||||
}
|
||||
|
||||
void AudioChunk::appendData(std::vector<uint8_t> &data)
|
||||
void AudioChunk::appendData(const std::vector<uint8_t> &data)
|
||||
{
|
||||
//if (this == nullptr) return;
|
||||
this->decryptedData.insert(this->decryptedData.end(), data.begin(), data.end());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user