Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Core::AudioEngine::PendingPlay Struct Reference

Deferred playback request awaiting its clip's async payload. More...

Collaboration diagram for Engine::Core::AudioEngine::PendingPlay:

Public Attributes

Assets::AudioClipHandle clip
 Clip handle whose payload this request waits on.
std::string assetPath
 Source path of the clip (matches the pipeline's load path).
float volume = 1.0f
 Volume multiplier requested at play time.
bool loop = false
 Whether the sound should loop.
std::optional< glm::vec3 > worldPosition
 World position for spatialized playback, or nullopt for non-spatialized.

Detailed Description

Deferred playback request awaiting its clip's async payload.

A play()/playSpatialized() call for a valid clip whose payload is still loading allocates a handle immediately and parks the request here; when the payload lands (onAudioLoaded) the sound is started against that same handle (issue #12 Phase D, "swap at the end of the handle").

Definition at line 311 of file AudioEngine.h.

Member Data Documentation

◆ assetPath

std::string Engine::Core::AudioEngine::PendingPlay::assetPath

Source path of the clip (matches the pipeline's load path).

Definition at line 320 of file AudioEngine.h.

◆ clip

Assets::AudioClipHandle Engine::Core::AudioEngine::PendingPlay::clip

Clip handle whose payload this request waits on.

Definition at line 315 of file AudioEngine.h.

◆ loop

bool Engine::Core::AudioEngine::PendingPlay::loop = false

Whether the sound should loop.

Definition at line 330 of file AudioEngine.h.

◆ volume

float Engine::Core::AudioEngine::PendingPlay::volume = 1.0f

Volume multiplier requested at play time.

Definition at line 325 of file AudioEngine.h.

◆ worldPosition

std::optional<glm::vec3> Engine::Core::AudioEngine::PendingPlay::worldPosition

World position for spatialized playback, or nullopt for non-spatialized.

Definition at line 335 of file AudioEngine.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Audio/AudioEngine.h