mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-04 21:05:06 +01:00
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:
parent
8917ec9c88
commit
a40d7c78ad
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user