GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::audio::SoundInstanceID Struct Reference

Opaque handle to a specific instance of a sound or sound mix playing in a sound stage or sound mix. More...

#include <GREM/audio/SoundInstanceID.hpp>

Public Member Functions

constexpr SoundInstanceID () noexcept=default
 Construct an invalid sound instance handle.
constexpr operator bool () const noexcept
 Check if this handle is potentially valid.
constexpr bool operator== (const SoundInstanceID &other) const noexcept=default
 Compare this handle to another for equality.
constexpr std::strong_ordering operator<=> (const SoundInstanceID &other) const noexcept=default
 Compare this handle to another.

Detailed Description

Opaque handle to a specific instance of a sound or sound mix playing in a sound stage or sound mix.

Constructor & Destructor Documentation

◆ SoundInstanceID()

grem::audio::SoundInstanceID::SoundInstanceID ( )
constexprdefaultnoexcept

Construct an invalid sound instance handle.

Member Function Documentation

◆ operator bool()

grem::audio::SoundInstanceID::operator bool ( ) const
inlineexplicitconstexprnoexcept

Check if this handle is potentially valid.

Returns
true if this handle is potentially valid, false if it is equal to a default-constructed invalid handle.

◆ operator==()

bool grem::audio::SoundInstanceID::operator== ( const SoundInstanceID & other) const
nodiscardconstexprdefaultnoexcept

Compare this handle to another for equality.

Parameters
otherthe handle to compare this one to.
Returns
true if the handles are equal, false otherwise.

◆ operator<=>()

std::strong_ordering grem::audio::SoundInstanceID::operator<=> ( const SoundInstanceID & other) const
nodiscardconstexprdefaultnoexcept

Compare this handle to another.

Parameters
otherthe handle to compare this one to.
Returns
a strong ordering between the two handles.

The documentation for this struct was generated from the following file: