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.
0
(center balance), full left channel is -1
, full Right channel is 1
.1
(100% speed of playback)
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
# install dependencies
yarn
# build js libraries for browser, nodejs and emscripten
yarn build
yarn build-demo
yarn start-demo
cd demo
node node.js
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
# 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 tono-hoist
them