Skip to content

Superpowered Audio Platform for Desktop, Mobile, IoT and Embedded Applications. Fully featured for interactive audio for Games, VOIP, DAWs, Music Apps, Hi-Res Audio, Voice Assistants, Virtual, Augmented and Mixed Reality use-cases. Cross Platform on Android, iOS, macOS, tvOS, Linux and Windows.

Notifications You must be signed in to change notification settings

ryardley/superpowered

 
 

Repository files navigation

Superpowered Interactive Audio Platform for Desktop, Mobile, IoT and Embedded Applications.

Fully featured interactive audio for Games, VOIP, DAWs, Music Apps, Hi-Res Audio, Voice Assistants, Virtual, Augmented and Mixed Reality use-cases.

Cross Platform on Android, iOS, macOS, tvOS, Linux and Windows.

What is it?

Low-power, real-time latency and cross-platform audio players, audio decoders, Fx, audio I/O, streaming, music analysis and spatialization, all optimized for interactive audio.

Supported Platforms

Superpowered is cross-platform: ALL SUPERPOWERED C++ CODE CAN BE COPY-PASTED between Android, iOS, macOS, tvOS, Linux and Windows.

Superpowered Technologies

Superpowered Inc develops the following interactive audio infrastructure:

1. Superpowered Audio SDK for Android, iOS, macOS, tvOS, Linux and Windows.

A fully-featured interactive audio platform with audio players, decoders, audio filters, effects and lower-level functions like FFTs and mixing.

For the most recent and up-to-date feature list, see: http://superpowered.com/#comptable

2. Superpowered HLS (HTTP Live Streaming) audio for Android, iOS, macOS, tvOS, Linux and Windows.

  • VOD, live or event streams.
  • AAC-LC or MP3 audio encoding.
  • ADTS AAC, MP3 or MPEG-TS containers.
  • Supports byte range requests and AES-128 encryption.
  • Bandwidth measurement and selectable automatic stream switching.
  • Selectable download strategies.

Background information: http://superpowered.com/http-live-streaming-for-android-superpowered-android-audio-io-and-audio-resampler

3. Superpowered USB Audio and USB MIDI for Android

The Superpowered USB Audio and MIDI features for Android takes over MIDI device handling, providing low latency and low jitter (below 2 ms) access to MIDI devices for 1.2 billion Android devices, that is, 80+% of all Android devices on Google Play. It’s the Android equivalent of iOS Core Audio and Core MIDI for USB devices.

For additional info, please see: http://superpowered.com/android-usb-audio-android-midi

4. Superpowered Media Server for Android

Superpowered has developed a system-space solution for Android's 10 ms Problem.

Interested parties should read:

PLEASE NOTE 1:

To evaluate Superpowered Media Server for Android, please contact mediaserver@superpowered.com.

NOTE 2

Windows builds are beta. Thank you for testing!

Folders

  • /Docs

    The documentation. Start with index.html.

  • /Superpowered

    The Audio SDK itself (static libraries and headers).

  • /License

    Contains the license document and Superpowered logo assets.

  • /Examples_Android

    Example projects for Android.

  • /Examples_iOS

    Example projects for iOS.

  • /Examples_Linux

    Example projects for Linux.

  • /Examples_tvOS

    Example projects for tvOS.

  • /Examples_Windows

    Example projects for Windows.

  • /SuperpoweredSpatializer

    • Unity example project.
    • Unity Native Audio Plugin example project for iOS, Android and OSX.
    • Ambisonics (b-format) implementation based on the SuperpoweredSpatializer.

Example Projects

/Examples_Windows/SuperpoweredExample.sln

Four simple Universal Windows Platform example projects in a single Visual Studio solution. Shows how to:

  • Set up audio I/O.
  • Use a single player to play an MP3 bundled with an app.
  • Use a single player to play HLS content.
  • Record the microphone input using SuperpoweredRecorder.
  • Use a single effect (input -> fx -> output).

/Examples_Windows/Superpowered3BandEQVST

A simple VST plugin project. Shows how to:

  • Build a VST equalizer plugin using Superpowered.
  • Build any Superpowered effect into a VST 2.x plugin.
  • Use Superpowered in an older VS 2013 project.

/Examples_iOS/SuperpoweredCrossExample, /Examples_Android/CrossExample

A fully-functional DJ app project example. Shows how to:

  • Set up audio I/O.
  • Set up two players.
  • Sync them together.
  • Apply some effects on the master mix.
  • Use Objective-C++.

/Examples_iOS/SuperpoweredFrequencyDomain, /Examples_Android/FrequencyDomain

Simple time domain to frequency domain transformation with buffering and windowing. Shows how to:

  • Set up audio I/O.
  • Use the SuperpoweredFrequencyDomain class.
  • Process the magnitudes and phases of the audio input.

/Examples_iOS/uperpoweredHLSExample, /Examples_Android/HLSExample, /Examples_Linux/src/hls.cpp

HTTP Live Streaming example project.

/Examples_iOS/SuperpoweredOfflineProcessingExample, /Examples_Linux/src/offlineX.cpp

Advanced example. Decodes an audio file, applies an effect or time stretching and saves the result in WAV. Shows how to:

  • Set up the SuperpoweredDecoder.
  • Apply a simple effect.
  • Use the time stretcher with an efficient dynamic memory pool.
  • Save the result in WAV.
  • Directly read from the iPod music library.
  • Use the offline analyzer to detect bpm and other information.

/Examples_iOS/SuperpoweredFrequencies

Simple 8-band frequency analyzer. Shows how to:

  • Mix Swift and Objective-C++ in a project.
  • Use the SuperpoweredBandpassFilterbank.

/SuperpoweredPerformance (iOS)

It compares several Superpowered features to Core Audio.

  • Shows the differences between Superpowered and Core Audio.

  • Syncs effects to the player's bpm.

  • Shows how to use Objective-C++ in an Objective-C project.

    Swift note: We have also tried creating this project in Swift, but it's not complete for audio and several features were impossible to implement (such as proper performance measurement). Swift is not designed for real-time audio. Fortunately, Objective-C++ files work great in Swift projects.

/SuperpoweredSpatializer/SuperpoweredUnity (Unity)

  • A Unity example project with one scene having a spatialized sound and a wall.
  • Check SuperpoweredSpatializer.cs on how occlusion was implemented.

/SuperpoweredSpatializer/src (Unity, Android, OSX)

  • The source code for the Superpowered Spatializer and Global Reverb plugins for Unity.
  • Shows how to use Superpowered in the Unity Native Audio Plugin SDK.

/SuperpoweredSpatializer/Android/jni (Unity, Android)

Builds the spatializer plugins for Unity->Android.

/SuperpoweredSpatializer/Xcode (Unity, OSX)

Builds the spatializer plugins for Unity->OSX.

/SuperpoweredSpatializer/ambi (OSX)

Simple ambisonics implementation based on the SuperpoweredSpatializer.

/Examples_Android/SuperpoweredUSBExample

This project comes with two example apps, a simple and a complex example app.

Simple USB Example App:

The simple example app demonstrates an easy audio setup, similar to how iOS handles USB audio devices. It also receives and displays MIDI. The audio functionality of the simple example app will cover most mobile audio use cases.

Complex USB Example App:

The complex example app demonstrates full USB audio discovery, for the use case of sophisticated DAW and recording apps. It displays the various input and output options, audio paths and hardware controls of a USB audio device. Hardware controls can be manipulated and advanced thru audio paths can be enabled.

If an audio output is selected without an audio input, the complex example sends a sine wave to every output channel. If both audio output and audio input are selected, then loopback or round-trip latency measurement are available.

This means that the complex example app is also a testing tool to discover a USB audio device’s advanced features, test audio quality, glitches and latency.

Remarks:

Superpowered USB Audio classes for Android are compatible from Android 19 (KitKat 4.4) onwards. That’s the first Android version where proper scheduling priorities were implemented for low latency audio. This covers more than 75% active Android devices today.

Android Studio

Before running any Android example project, please set up the appropriate Android SDK and NDK paths in File - Project Structure...

How to create a Superpowered project with Android Studio

Prerequisites: latest Android SDK, Android NDK, Android Studio installed. Steps:

  1. Create a new project in Android Studio.
  2. Create the cpp folder inside the project's folder: app/src/main/jni
  3. Copy the contents of the following files from one of the example projects: gradle/wrapper/gradle-wrapper.properties, build.gradle, app/build.gradle, app/CMakeLists.txt
  4. Open build.gradle (Module: app), and change the applicationId

The Latest Version

Details of the latest version can be found at http://superpowered.com/superpowered-audio-sdk/

Licensing

The Superpowered Audio SDK offers free and paid licenses. Most apps qualify for a free license.

For details, please see: http://superpowered.com/license

For licensing inquiries, please email licensing@superpowered.com.

Support

Superpowered offers multiple support options.

Email: support@superpowered.zendesk.com

Knowledge base: https://superpowered.zendesk.com/hc/en-us

StackOverflow: https://stackoverflow.com/search?tab=newest&q=superpowered

YouTube: https://www.youtube.com/playlist?list=PLtRKsB6a4xFMXJrZ9wjscOow3nASBoEbU

Developer Documentation: http://superpowered.com/docs/index.html

Paid support options: http://superpowered.com/support

Custom Application Development Services

Superpowered offers custom development services focusing on low-latency, interactive audio applications for mobile, desktop and embedded.

For development inquiries, please email customdev@superpowered.com.

Contact

If you want to be informed about new code releases, bug fixes, general news and information about Superpowered, please email hello@superpowered.com.

For licensing inquiries, please email licensing@superpowered.com.

Notes

Superpowered FFT benefits from ideas in Construction of a High-Performance FFT by Eric Postpischil (http://edp.org/resume.htm).

The Superpowered MP3 and AAC decoder benefits from optimizations by Ken Cooke.

About

Superpowered Audio Platform for Desktop, Mobile, IoT and Embedded Applications. Fully featured for interactive audio for Games, VOIP, DAWs, Music Apps, Hi-Res Audio, Voice Assistants, Virtual, Augmented and Mixed Reality use-cases. Cross Platform on Android, iOS, macOS, tvOS, Linux and Windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 55.3%
  • Objective-C++ 16.5%
  • Objective-C 11.0%
  • Java 10.1%
  • C 3.9%
  • CMake 0.9%
  • Other 2.3%