|
|
PixelBullet
0.0.1
A C++ game engine
|
Implementation of the AudioBackend interface using the miniaudio engine. More...
#include <miniaudio_backend.h>
Classes | |
| struct | ActiveSound |
Public Member Functions | |
| virtual bool | init () override |
| Initializes the backend. Returns true on success. | |
| virtual void | shutdown () override |
| Shuts down the backend. | |
| virtual void | update () override |
| Performs periodic backend maintenance. | |
| virtual void | play_sound (AudioPlaybackHandle handle, const std::string &file_path, AudioPlaybackSettings settings) override |
| Plays the sound file at filePath using an owned playback handle. | |
| virtual void | stop_sound (AudioPlaybackHandle handle) override |
| Stops an active playback handle if it still exists. | |
| virtual void | pause_sound (AudioPlaybackHandle handle) override |
| Pauses an active playback handle if it still exists. | |
| virtual void | resume_sound (AudioPlaybackHandle handle) override |
| Resumes an active playback handle if it still exists. | |
| virtual void | set_volume (AudioPlaybackHandle handle, float volume) override |
| Updates the playback volume for an active handle. | |
| virtual void | set_looping (AudioPlaybackHandle handle, bool loop) override |
| Updates whether an active playback loops. | |
| virtual void | set_listener_transform (glm::vec3 position, glm::vec3 forward, glm::vec3 up) override |
| Updates the active listener transform used by spatial sounds. | |
| virtual void | set_spatial_settings (AudioPlaybackHandle handle, AudioSpatialSettings settings) override |
| Updates spatial settings for an active playback handle. | |
| virtual void | set_playback_position (AudioPlaybackHandle handle, glm::vec3 position) override |
| Updates the world-space position of an active playback handle. | |
| virtual void | stop_all () override |
| Stops all active sounds. | |
Implementation of the AudioBackend interface using the miniaudio engine.
|
overridevirtual |
Initializes the backend. Returns true on success.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Pauses an active playback handle if it still exists.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Plays the sound file at filePath using an owned playback handle.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Resumes an active playback handle if it still exists.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Updates the active listener transform used by spatial sounds.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Updates whether an active playback loops.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Updates the world-space position of an active playback handle.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Updates spatial settings for an active playback handle.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Updates the playback volume for an active handle.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Shuts down the backend.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Stops all active sounds.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Stops an active playback handle if it still exists.
Implements pixelbullet::AudioBackend.
|
overridevirtual |
Performs periodic backend maintenance.
Implements pixelbullet::AudioBackend.