AudioManager

Manages the Audio.

Constructors

this
this()

Initializes the AudioManager and it's backend. Backend is decided at compile-time.

Members

Functions

cleanup
void cleanup()

Cleanup any resources used by the backend.

createSource
Source createSource(Vec3 location)

Create a a new Source at the specified location. The Source is also added to this AudioManager.

deleteSource
void deleteSource(Source source)

Deletes a Source, frees it's resources, and removes it from the AudioManager.

Properties

gain
float gain [@property getter]

The listener's gain or volume.

gain
float gain [@property setter]

The listener's gain or volume.

listenerLocation
Vec3 listenerLocation [@property getter]

The location where the listener is.

listenerLocation
Vec3 listenerLocation [@property setter]

The location where the listener is.

Meta