class
#include <nCine/Audio/ALAudioDevice.h>
ALAudioDevice OpenAL audio device backend implementation.
Base classes
- class IAudioDevice
- Audio device interface.
Constructors, destructors, conversion operators
- ALAudioDevice()
- ~ALAudioDevice() override
Public functions
- auto isValid() const -> bool override
- auto name() const -> const char* override
- auto gain() const -> float override
- Returns the listener gain value.
- void setGain(float gain) override
- Sets the listener gain value.
- auto maxNumPlayers() const -> unsigned int override
- Returns the maximum number of active players.
- auto numPlayers() const -> unsigned int override
- Returns the number of active players.
- auto player(unsigned int index) const -> const IAudioPlayer* override
- Returns the specified running player object.
- void stopPlayers() override
- Stops every player currently playing.
- void pausePlayers() override
- Pauses every player currently playing.
- void stopPlayers(PlayerType playerType) override
- Stops every player of the specified type.
- void pausePlayers(PlayerType playerType) override
- Pauses every player of the specified type.
- void freezePlayers() override
- Pauses every player currently playing without unregistering it.
- void unfreezePlayers() override
- Resumes every player previoulsy "frozen" to a playing state.
- auto registerPlayer(IAudioPlayer* player) -> unsigned int override
- Registers a new stream player for buffer update.
- void unregisterPlayer(IAudioPlayer* player) override
- Unregisters a stream player.
- void updatePlayers() override
- Updates players state (and buffer queue in the case of stream players)
- auto getListenerPosition() const -> const Vector3f& override
- Returns 3D position of the listener.
- void updateListener(const Vector3f& position, const Vector3f& velocity) override
- Updates position and speed of the listener.
- auto nativeFrequency() -> int override
- Returns native sample rate of used audio device.
- void suspendDevice() override
- Suspends audio device.
- void resumeDevice() override
- Resumes audio device.