4#ifndef GREM_AUDIO_SOUND_INSTANCE_ID_HPP
5#define GREM_AUDIO_SOUND_INSTANCE_ID_HPP
35 constexpr explicit operator
bool() const noexcept {
61 friend std::hash<SoundInstanceID>;
72struct std::hash<
grem::audio::SoundInstanceID> {
74 return hasher(soundInstanceID.value);
78 [[no_unique_address]] std::hash<unsigned> hasher;
Ducking filter for reducing the volume of a sound when another sound is active.
Definition filters.hpp:696
Container for a mix of sound waves that can be played in a SoundStage.
Definition SoundMix.hpp:58
Persistent system for playing sound in a simulated 3D arena to the default audio device.
Definition SoundStage.hpp:122
Opaque handle to a specific instance of a sound or sound mix playing in a sound stage or sound mix.
Definition SoundInstanceID.hpp:23
constexpr std::strong_ordering operator<=>(const SoundInstanceID &other) const noexcept=default
Compare this handle to another.
constexpr SoundInstanceID() noexcept=default
Construct an invalid sound instance handle.
constexpr bool operator==(const SoundInstanceID &other) const noexcept=default
Compare this handle to another for equality.
std::size_t operator()(const grem::audio::SoundInstanceID &soundInstanceID) const
Definition SoundInstanceID.hpp:73