-
Notifications
You must be signed in to change notification settings - Fork 93
Oboe support #166
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
Oboe support #166
Conversation
joebowbeer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next steps?
Test the .aar artifact?
Bump the version to create a new SNAPSHOT?
Thoughts on adding diffplug/spotless to enforce a style on the java and cpp code?
| } | ||
|
|
||
| void OboeEngine::getAudioParams(int &numInputs, int &numOutputs, int &sampleRate) { | ||
| if(!mPlayStream) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if(!mPlayStream) return; | |
| if (!mPlayStream) return; |
| void onErrorAfterClose(oboe::AudioStream *oboeStream, oboe::Result error) override; | ||
|
|
||
| private: | ||
| bool mIsEffectOn = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extraneous whitespace?
|
I'm all OK for diffplug/spotless, you're welcome to it :-) I'm currently testing the aar on PdDroidParty. Like with other pd-for-android demos, there's the problem of the initial native lib loading: The problem is:
Now I'm testing PdDroidParty, and it's yet a new one! The first call is So I see 3 possible solutions:
What do you think? |
|
My take away from the conversation in libpd was:
I think it's best to pursue that path and refactor later, or accelerate the refactor and add oboe after the refactor. Unless someone knows a transparent way to ensure setupNativeLoader is called. Changing the way init is done (PdAndroidInit) would be a major (v2) change. Not necessarily a bad thing. |
sorry I'm sure what you mean, do you mean you'd prefer the new oboe native lib to go to libpd? |
libpd is the proven approach and seemed to be what everyone (else) was suggesting. |
|
ok no problem, I'll do it like this. |
This switches the audio driver to Oboe.
Fixes #47, fixes #66, fixes #89.
Added:
preference screen (that's pretty cool actually, you can chose between the different mikes if any, or select between e.g usb audio card, device speaker or device headphones).
The first part could have been targeted to
libpdinstead; actually it will always be possible to do it later, if someone really insists to.But I doubt it is useful to have code in a repo, that you cannot even compile and test from within this repo...
And as Dan said in libpd/libpd#284 (comment):