We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d5e1a5 commit 279d59cCopy full SHA for 279d59c
1 file changed
docs/FullGuide.md
@@ -333,8 +333,9 @@ The callback does a non-blocking read from the input stream placing the data int
333
void *audioData,
334
int32_t numFrames){
335
auto result = stream2.read(audioData, numFrames, timeout);
336
+ // result has type ResultWithValue<int32_t>, which for convenience is coerced to a Result type when compared with another Result.
337
if (result == Result::OK){
- if (result == numFrames)
338
+ if (result.value() == numFrames)
339
return DataCallbackResult::Continue;
340
if (result.value() >= 0) {
341
memset(static_cast<sample_type*>(audioData) + result.value() * samplesPerFrame, 0,
0 commit comments