eliasku / auph

Trivial audio mixer API for native and web targets
13 stars 0 forks source link
android audio coreaudio cpp ios macos nodejs npm-package oboe

🔊 auph 🎧

Build Version Downloads

Trivial audio mixer API for native and web targets. Online Demo

⚠️ Work in progress! API is constantly changing. The native playback at the moment sounds bad, has not been tested, and has not been fully tested on mobile projects.

Core Concepts

Objects

Parameters

Voice Flags

Voice lifecycle

Notes

Decoding MP3 audio files

It's recommended to re-encode all foreign MP3 audio files to fix Safari issues. For example, you could use ffmpeg tooling:

ffmpeg -i broken.mp3 -c:a copy -c:v copy fixed.mp3

Building

Install build requirements first

Install and Build

# install dependencies
yarn

# build js libraries for browser, nodejs and emscripten
yarn build

Demo projects

Browser demo

yarn build-demo
yarn start-demo

NodeJS demo

cd demo
node node.js

C++ console demo with cmake

cd demo/cpp

# configure and build cmake project
cmake -B build .
cmake --build build

# run: current working directory is important to load shared assets correctly
cd build
./auph-console-test

iOS Xcode / Android projects

# install dependencies is required
yarn

# open Xcode project
open demo/xcode/auph-ios.xcodeproj

# open Android Studio project ("studio" is command-line shell for Android Studio)
studio demo/android

Search path to dependencies is hardcoded in project settings, so you need node_modules folder in the repository root, if you working in monorepo workspaces you need to no-hoist them