mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-16 08:27:01 +03:00
Bell/cspot catchup - release
This commit is contained in:
@@ -52,10 +52,6 @@ size_t BellDSP::process(uint8_t* data, size_t bytes, int channels,
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t bytesPerSample = channels * 2;
|
||||
|
||||
size_t samplesLeftInBuffer = buffer->audioBuffer->size() / bytesPerSample;
|
||||
|
||||
// Create a StreamInfo object to pass to the pipeline
|
||||
auto streamInfo = std::make_unique<StreamInfo>();
|
||||
streamInfo->numChannels = channels;
|
||||
|
||||
@@ -118,8 +118,7 @@ class CentralAudioBuffer {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto readBytes =
|
||||
audioBuffer->read((uint8_t*)&lastReadChunk, sizeof(AudioChunk));
|
||||
audioBuffer->read((uint8_t*)&lastReadChunk, sizeof(AudioChunk));
|
||||
currentSampleRate = static_cast<uint32_t>(lastReadChunk.sampleRate);
|
||||
return &lastReadChunk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user