-
Notifications
You must be signed in to change notification settings - Fork 285
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
Android openPCM16AudioInMemory #736
Comments
Thank you for reaching out! We were able to reproduce the issue. The SuperpoweredPlayer sample app indeed crashes when using openPCM16AudioInMemory. While the issue gets resolved, as a workaround we recommend using the other open methods of the AdvancedAudioPlayer using the file path:
or
|
Closing issue, will fix in future version. |
Thank you so much for the rapid answer! Although the workaround could not fit my specific use case (I'm implementing a looper, and saving the real time audio input in a file to be opened, in real time, through the path could be not suitable) I'm happy to know that the issue will be fixed in a future release! Thanx again! |
I'm also running into this issue when using Any idea when this will be fixed? |
Yes, setting |
android:allowNativeHeapPointerTagging |
I make extensive use of openPCM16AudioInMemory for AdvancedAudioPlayer in my app and everything goes fine.
But this is true only if I set targetSdkVersion 29 (ver.10) in build.gradle.
As soon I set it at 30 (ver.11), or higher, this is what happens:
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x28 in tid 7620 (AAudio_1), pid 7564 (mant.yyy)
pid: 7564, tid: 7620, name: AAudio_1 >>> com.xxx.yyy <<<
../lib/arm64/libSPAudioEngine.so (Superpowered::bufferList::update()+40)
../lib/arm64/libSPAudioEngine.so (Superpowered::memoryPcmProvider::hasResponse()+92)
../lib/arm64/libSPAudioEngine.so (Superpowered::playerProcess::processAUTHREAD(float**, bool, unsigned int, float*, ...)+1704)
../lib/arm64/libSPAudioEngine.so (Superpowered::AdvancedAudioPlayer::processStereo(float*, bool, unsigned int, float)+72)
../lib/arm64/libSPAudioEngine.so (SampleTrack::process(float*, float, unsigned int)+124)
../lib/arm64/libSPAudioEngine.so (SPAudioEngine::process(short*, unsigned int)+300)
all this with SDK 2.5.0, but tried with 2.6.0 it's the same.
Moreover, I use
#define USE_AAUDIO 1
in SuperpoweredAndroidAudioIO.cpp, to get the least latency, but also because if I set it to 0 it gives:Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2f7365722f6b70 in tid 8904 (AudioTrack), pid 8867 (mant.yyy)
pid: 8867, tid: 8904, name: AudioTrack >>> com.xxx.yyy<<<
at the launch, and the app doesn't even get started.
Any clue?
Thanx in advance
The text was updated successfully, but these errors were encountered: