Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (34 loc) · 1007 Bytes

NATIVE.md

File metadata and controls

43 lines (34 loc) · 1007 Bytes

Auph for C/C++

  • Android: Google's Oboe (OpenSLES / AAudio)
  • macOS: CoreAudio
  • iOS: CoreAudio + AVSession
  • WebAssembly: WebAudio
  • Windows: WASAPI
  • Linux: ALSA
  • NodeJS bindings

Format support

Example

#include <auph/auph.hpp>

...
// initialize and resume
auph::init();
auph::resume();

// load music stream
auto music = auph::load("../../assets/mp3/Kalimba.mp3", auph::Flag_Stream);
if(music) {
    // play music looped on dedicated Music Bus 
    auto voice = auph::play(music, 1.0f, 0.0f, 1.0f, true, false, auph::Bus_Music);
    if(voice) {
        
        ...
        
        // stop all active voices started with music source
        auph::stop(music);
    }
}
...

Roadmap

  • native: Support for Windows (WASAPI) and Linux (ALSA)