mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-01 11:45:30 +03: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) {
|
void Audio::onErrorAfterClose(oboe::AudioStream *audioStream, oboe::Result error) {
|
||||||
if (error == oboe::Result::ErrorDisconnected) {
|
builder.openManagedStream(outputStream);
|
||||||
builder.openManagedStream(outputStream);
|
outputStream->requestStart();
|
||||||
outputStream->requestStart();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user