atsushieno / aap-core

an Audio Plugin Format/Framework for Android
MIT License
91 stars 3 forks source link

eliminate audio glitch noises from androidaudioplugin-manager etc. #199

Closed atsushieno closed 6 months ago

atsushieno commented 7 months ago

It seems aapinstrumentsample yields some noise, not just at bootstrap, but continuously on occasion.

I thought it was aap-juce issue, but it seems that the combination of aap-juce-simple-host and aap-lv2-string-machine works fine. aap-lv2-string-machine on androidaudioplugin-manager is problematic too (unless it is specific to androidaudioplugin-ui-compose-app).

aap-juce-hera + aap-juce-simple-host has different (and multiple) problems too, so it would need another investigation. So far, we track the issue with androidaudioplugin-manager here.

atsushieno commented 7 months ago

It seems aapinstrumentsample yields some noise, not just at bootstrap, but continuously on occasion.

It is actually not very reproducible. If I cannot for a while maybe I ignore this particular issue.

atsushieno commented 7 months ago

aapinstrumentsample is glitchy enough on the plugin manager activity, while it is almost fine on resident-midi-keyboard, which also strengthen the assumption that androidaudioplugin-manager is to blame.

atsushieno commented 7 months ago

It seems like an instancing issue.

atsushieno commented 7 months ago

Profiling above:

image
atsushieno commented 6 months ago

36e21e62 seems to fix the biggest audio glitch issue generally found on androidaudioplugin-manager. It was the host side issue. Confirmed with aapinstrumentsample, aap-lv2-string-machine and aap-juce-hera with aaphostsample.

It still does not fix the other issue that reopening the stream results in non-exclusive AAudio stream (no idea why that happens).

atsushieno commented 6 months ago

Closing this particular issue with new issue as #200.