Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Android Oboe audio error recovery mode. #940

Merged
merged 4 commits into from
Jul 15, 2021

Conversation

atsushieno
Copy link
Contributor

Context: #931

There is a new settings "audio.oboe.audio-error-recovery-mode" which has
string value of "Reconnect" (default) or "Stop".

Under Reconnect mode, it automatically recreate AudioStream for the
same audio device ID (which is the default = valid device, unless a
specific ID is specified). The behavior is the same as OpenSLES.

In the future Fluidsynth might want to provide consistent error handling
mode for audio device unplugged state, but so far this change makes apps
behave not too weird.

Context: FluidSynth#931

There is a new settings "audio.oboe.audio-error-recovery-mode" which has
string value of "Reconnect" (default) or "Stop".

Under `Reconnect` mode, it automatically recreate AudioStream for the
same audio device ID (which is the default = valid device, unless a
specific ID is specified). The behavior is the same as OpenSLES.

In the future Fluidsynth might want to provide consistent error handling
mode for audio device unplugged state, but so far this change makes apps
behave not too weird.
Copy link
Member

@derselbst derselbst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job, thanks! Some minor issues / questions below.

src/drivers/fluid_oboe.cpp Show resolved Hide resolved
src/drivers/fluid_oboe.cpp Outdated Show resolved Hide resolved
src/drivers/fluid_oboe.cpp Outdated Show resolved Hide resolved
src/drivers/fluid_oboe.cpp Show resolved Hide resolved
doc/fluidsettings.xml Show resolved Hide resolved
atsushieno and others added 3 commits July 14, 2021 15:33
- the default `Reconnect` option was missing from RECOVERY_MODE
- ensure to reset `stream` field on "stop on error" mode.
- changed some log verbosity values on device disconnection events.
Copy link
Member

@derselbst derselbst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sonarcloud
Copy link

sonarcloud bot commented Jul 15, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@derselbst derselbst merged commit 4240d31 into FluidSynth:master Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants