superpowered

How to record audio with Superpowered SDK on Android Q?

不羁岁月 提交于 2020-01-25 07:48:05
问题 I want to record audio with Superpowered SDK on my rooted Android Q device. As Google has put some restrictions on recording Audio on Android Q so I am trying to port Superpowered SDK Android Example into a Linux executable that I can run on system space bypassing the Android Apps restriction. Please let me know if I am wrong at this point. For this I have created a simple project with the main class as the following: #include <string> #include <OpenSource/SuperpoweredAndroidAudioIO.h>

Superpowered NDK Android: returning int succeeds in “extern” block, fails in called function

China☆狼群 提交于 2020-01-25 00:08:05
问题 I'm trying to figure out how to return an int to Java from a C++ function. On the Java side, I have the following in a button. I put it in a button to ensure that the app was completely loaded before attempting to execute returnInt(). int testInt; testInt = returnInt(); Log.i(TAG, "testInt"); Log.i(TAG, String.valueOf(testInt)); And private native int returnInt(); On the C++ side, returning an int in an extern block succeeds: extern "C" JNIEXPORT jint Java_com_superpowered_crossexample

How to reuse audio files in Superpowered?

巧了我就是萌 提交于 2019-12-08 12:30:13
问题 I'm building an Android digital piano with Superpowered SDK. I use a SuperpoweredAdvancedAudioPlayer instance for every tone (e.g. c tone, d tone, e tone...). To avoid memory, I would like to reuse audio samples (mp3 files) across SuperpoweredAdvancedAudioPlayer instances and - if necessary - pitch them down/up by a halftone (100 cent). e.g. The "E tone" uses the mp3 sample for the "D tone" and is just pitched up by 100 cent. How can I make it happen, that the SuperpoweredAdvancedAudioPlayer

How to write file to external storage using superpowered SDK in android?

巧了我就是萌 提交于 2019-12-01 08:27:07
While implementing a project using superpowered for Android audio effects like flunge, echo, reverb etc I am able to make recording through native and write file in external storage, then using superpowered crossfader example I open that file and apply effects on it that works fine. Now I need to write the output file in external storage with applied effects but don't know how to do this. There are iOS examples for this like SuperpoweredOfflineProcessingExample , but I didn't find its solution for Android file. Any help will be highly appreciated to make audio output wav file with effects. I

How to write file to external storage using superpowered SDK in android?

不想你离开。 提交于 2019-12-01 06:22:22
问题 While implementing a project using superpowered for Android audio effects like flunge, echo, reverb etc I am able to make recording through native and write file in external storage, then using superpowered crossfader example I open that file and apply effects on it that works fine. Now I need to write the output file in external storage with applied effects but don't know how to do this. There are iOS examples for this like SuperpoweredOfflineProcessingExample, but I didn't find its solution

Superpowered: real time pitch shift with timestretcher not working

断了今生、忘了曾经 提交于 2019-11-27 07:24:06
问题 I am using Superpowered for various real-time FX and they all work very straightforward. However the pitch shifting is a whole other story, I think in fact because it's based on the time-stretching algorithm that of course has to deal with output that changes in time which is a lot more complex than applying FX like EQ or reverb. However I'm only interested in change the pitch of my mic input. I looked at the only example I could find on GitHub and I slightly adapted it to fit my work: static