We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a98cc1 commit bca62a5Copy full SHA for bca62a5
src/AudioTools/CoreAudio/BaseStream.h
@@ -72,11 +72,15 @@ class BaseStream : public Stream {
72
73
virtual int read() override {
74
refillReadBuffer();
75
+ // if it is empty we need to return an int -1
76
+ if (tmp_in.isEmpty()) return -1;
77
return tmp_in.read();
78
}
79
80
virtual int peek() override {
81
82
83
84
return tmp_in.peek();
85
86
0 commit comments