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

AudioPluginHost: adjust sample rate to match the audio device profile #17

Open
atsushieno opened this issue Jul 10, 2020 · 4 comments
Open
Labels
bug Something isn't working

Comments

@atsushieno
Copy link
Owner

atsushieno commented Jul 10, 2020

taking over #14

JUCE AudioPluginHost is still weird. OB-Xd always crashes. Any other synths generate sound, but their key is weird. Also it frequently crashes.

It is not limited to JUCE-based synths. mda-lv2 synths are also suffered.

@atsushieno
Copy link
Owner Author

OB-Xd does not crash anymore.

@atsushieno
Copy link
Owner Author

The output key, actually output frequency, was weird because AudioPluginHost initializes sample rate at 44100 while it must be consistent with the Android audio device profile. Either my latest development environment (linux desktop) or the latest emulator is configured to run at 48000, and if I adjust audio device settings to it, the output became alright.

@atsushieno
Copy link
Owner Author

As of July 11th I was still on my previous dev. laptop, so it is more likely due to emulator changes.

@atsushieno atsushieno changed the title AudioPluginHost is unstable (in both weird audio output and crashes) AudioPluginHost: adjust sample rate to match the audio device profile Aug 31, 2020
@atsushieno atsushieno added the bug Something isn't working label Aug 31, 2020
@atsushieno
Copy link
Owner Author

As of v0.7.6 it seems still problematic. On my Pixel device I still had to explicitly set the sample rate to 44100 (from 48000) to get the right output, on aap-juce-simple-host.

However, it seems to only apply to aap-juce plugins. aap-lv2-string-machine had no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant