Always recreate oboe stream on error

This is what's done in oboe examples to avoid spurious errors breaking audio entirely.
This commit is contained in:
Billy Laws 2022-08-31 20:40:38 +01:00
parent 8917ec9c88
commit a40d7c78ad

View File

@ -68,9 +68,7 @@ namespace skyline::audio {
}
void Audio::onErrorAfterClose(oboe::AudioStream *audioStream, oboe::Result error) {
if (error == oboe::Result::ErrorDisconnected) {
builder.openManagedStream(outputStream);
outputStream->requestStart();
}
builder.openManagedStream(outputStream);
outputStream->requestStart();
}
}