Audio

Principle

The Audio Foundation Library defines a low-level Audio framework for embedded devices. It allows to manage abstract audio streams without worrying about the native underlying Audio device kind.

Functional Description

The MicroEJ Application manages Audio devices using audio streams abstraction. The Audio implementation made for each VEE Port is responsible for surfacing the native Audio device specific behavior.

Dependencies

  • LLAUDIO_SOURCE_impl.h and LLAUDIO_SINK_impl.h implementations (see LLAUDIO: Audio). In Audio 1.3.0 and lower, these files are named LLAUDIO_RECORD_impl.h and LLAUDIO_TRACK_impl.h.

Installation

Audio is an additional module. To enable it, install the Audio Foundation Library (Audio 3.0.0 and higher) or the Audio Pack module (Audio 1.3.0 and lower) in your VEE Port:

For Audio 3.0.0 and higher:

api("ej.api:audio:3.0.0")

For Audio 1.3.0 and lower:

microejPack("com.microej.pack.audio:audio-pack:1.3.1")

Use

See Audio API chapter in the Application Developer Guide.