Skip to content

Commit 75e00d1

Browse files
committed
2 altrnatives for readBytes for GeneratedSoundStream
1 parent c792704 commit 75e00d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/AudioTools/Streams.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ class GeneratedSoundStream : public Stream {
171171
return generator_ptr->readBytes((uint8_t*)buffer, length);
172172
}
173173

174+
/// privide the data as byte stream
175+
size_t readBytes( uint8_t *buffer, size_t length) {
176+
LOGD("GeneratedSoundStream::readBytes: %zu", length);
177+
return generator_ptr->readBytes(buffer, length);
178+
}
179+
174180
/// start the processing
175181
void begin() {
176182
LOGD(__FUNCTION__);

0 commit comments

Comments
 (0)