Questions tagged [superpowered]

Use this tag for questions about the usage of the API of the audio engine. If the issue is related to a certain platform make sure to add that tag that as well.

SuperPowered claims to be the fastest Mobile Audio Engine for Games, VR, Music and Interactive Audio Apps Low Latency Audio.

It is Cross Platform for Android, OSX and iOS.

Find the documentation on the official website

117 questions
1
vote
1 answer

Superpowered Android NDK: get positionPercent to update audio progress seekbar

I am using the superpowered AdvancedAudioPlayer to play mp3s on Android. I want to use a seekbar to show progress as the file plays. My plan was to get the positionPercent attribute of the player once a second using a Runnable on the Java side, and…
user1147171
  • 1,213
  • 3
  • 14
  • 22
1
vote
1 answer

Explain C++ code from Superpowered CrossExample for Android

This code occurs in the CrossExample from superpowered.com: static void playerEventCallbackA(void *clientData, SuperpoweredAdvancedAudioPlayerEvent event, void * __unused value) { if (event == SuperpoweredAdvancedAudioPlayerEvent_LoadSuccess)…
user1147171
  • 1,213
  • 3
  • 14
  • 22
1
vote
0 answers

Use of SuperpoweredAndroidAudioIO interface

I create SuperpoweredAndroidAudioIO for recording, and it starts working right away, which is fine. However, when I try to use the .onForeground() method when the android activity calls .onResume() it causes a crash... Even if I call onBackground()…
Joel
  • 2,601
  • 4
  • 33
  • 44
1
vote
1 answer

Unable to create so file for arm64-v8a with Superpowered library

I integrated the Superpowered Library in my application. I added all the .a files in the jni folder.All files are successfully compiled and generates the so file except arm64-v8a architecture. I used the "libSuperpoweredAndroidARM64.a" file. Can you…
1
vote
2 answers

Wait until file load in Superpowered Library

I looking for some solution for waiting until SuperpoweredAdvancedAudioPlayer open the file. I make ios objective-c application where I want to play multiple tracks at the same time. But when I try start tracks in this way: …
MaSza
  • 435
  • 7
  • 22
1
vote
2 answers

Proper JNI conversion getting array items from jobjectarray to seperate const char

please pardon me as I'm kindof new to c++ jni environment I am trying to passing a String[] array from java through JNI bridge to c++ while following tips I found here giving this snippet: void MyJNIFunction(JNIEnv *env, jobject object, jobjectArray…
1
vote
1 answer

Calling a Java Function from within a Superpowered SDK callback

I'm defining a callback to process audio in Android using Superpowered SDK. I'm passing the JNIEnv using the clientData pointer in the callback. Is there anyway I can call a simple Java function to update some text on the main screen inside the…
Abhishek Sehgal
  • 590
  • 4
  • 16
1
vote
1 answer

cmake: "cannot execute binary file" on osx android build

On OSX, when running an android gradle build it gives me the following: android-sdk-macosx/cmake/3.6.3155560/bin/cmake: cannot execute binary file I've tried chmod +x, reinstalling the android sdk build tools googling OSX 10.11.6 Gradle 2.14.1…
Joel
  • 2,601
  • 4
  • 33
  • 44
1
vote
1 answer

Android NDK CMakeLists.txt: error: undefined reference to:

I've looked around but I've only been able to find solutions that use Android.mk and Application.mk. Am I right in thinking that by using CMakeLists.txt I don't need either of those files? This is my first venture into using the Android NDK. I've…
Josh Laird
  • 6,974
  • 7
  • 38
  • 69
1
vote
1 answer

Android - Change channel for wave file from stereo to mono or mono to stereo using jni

I have used the Superpowered library to record audio. It records the audio in stereo. I want to change channel of recorded audio from stereo to mono. How can we change the audio channel for the recorded audio file using Superpowered or any other…
Amit Thaper
  • 2,117
  • 4
  • 26
  • 49
1
vote
1 answer

Count samples played with SuperpoweredAdvancedAudioPlayer

I am using the SuperpoweredAdvancedAudioPlayer class to play a potentially very large audio file whose encoding varies (different bitrates, samplerates, even codecs). I need to be able to sync playback of this file with another file at the sample…
NSMustache
  • 55
  • 5
1
vote
1 answer

Implementing Autotune with Superpowered

I have been using the Superpowered library for writing an iOS app for applying audio effects to recordings of users singing songs. Its been super easy to use thus far for pitch shifting and effects. I'm now trying to write an autotune feature for my…
1
vote
1 answer

SIGSEGV with SuperpoweredReverb

Does anybody know why I get a SIGSEGV as soons as the superpoweredReverb object gets deleted? int size = 3056; SuperpoweredReverb* superpoweredReverb = new SuperpoweredReverb(44100); superpoweredReverb->enable(true); float* buffer = new float[size…
Sebastian
  • 183
  • 1
  • 12
1
vote
1 answer

Get number of channels using SuperpoweredDecoder

Is it possible to get the number of channels of a .wav file using the SuperpoweredDecoder? I need this information for doing offline processing of .wav files with the superpowered sdk on android. Thanks in advance!
Sebastian
  • 183
  • 1
  • 12
0
votes
1 answer

A track doesn't have duration and doesn't seek unless I play it for the first time

Calling getDurationMs on an AdvancedAudioPlayer instance always returns 0 before hitting play. Also, calling setPosition doesn't work, which makes sense since the song has 0 ms of duration. After playing for the first time, the duration gets filled…
Mateus Pires
  • 903
  • 2
  • 11
  • 30