mirror of
https://github.com/pschatzmann/arduino-audio-tools.git
synced 2026-03-13 09:40:22 +08:00
MemoryStream: begin() return false when buffer is nullptr
This commit is contained in:
@@ -142,8 +142,8 @@ class MemoryStream : public AudioStream {
|
||||
resize(buffer_size);
|
||||
}
|
||||
read_pos = 0;
|
||||
is_active = true;
|
||||
return true;
|
||||
is_active = this->buffer != nullptr;
|
||||
return is_active;
|
||||
}
|
||||
|
||||
virtual size_t write(uint8_t byte) override {
|
||||
|
||||
Reference in New Issue
Block a user