#include <AudioRuntime.hpp>
|
| | Runtime (std::shared_ptr< const data::ResourceSnapshot > resources) |
| |
| | ~Runtime () |
| |
| | Runtime (const Runtime &)=delete |
| |
| Runtime & | operator= (const Runtime &)=delete |
| |
| std::expected< void, std::string > | ensureReady () |
| |
| std::expected< void, std::string > | play (PlaybackKey key, data::DataId waveDataId, float gain=1.0F, bool loop=false, std::uint32_t pitchHertz=0U, std::int32_t panPercentage=0) |
| |
| std::expected< void, std::string > | playFile (PlaybackKey key, std::string_view relativePath, float gain=1.0F, bool loop=false, std::uint32_t pitchHertz=0U, std::int32_t panPercentage=0) |
| |
| void | stop (PlaybackKey key) noexcept |
| |
| void | stopAll () noexcept |
| |
| void | setGain (PlaybackKey key, float gain) noexcept |
| |
| void | setPitch (PlaybackKey key, std::uint32_t hertz) noexcept |
| |
| void | setPanning (PlaybackKey key, std::int32_t percentage) noexcept |
| |
| void | setLooping (PlaybackKey key, bool loop) noexcept |
| |
| std::optional< std::int32_t > | positionTicks (PlaybackKey key) const noexcept |
| |
| std::expected< void, std::string > | synchronizeSequence (PlaybackKey key, std::int32_t position, bool paused, std::uint64_t seekGeneration) |
| |
| void | update () noexcept |
| |
| bool | active (PlaybackKey key) const noexcept |
| |
| data::BoardEdition | boardEdition () const noexcept |
| |
| data::LanguageId | language () const noexcept |
| |
Definition at line 113 of file AudioRuntime.hpp.
◆ Runtime() [1/2]
◆ ~Runtime()
| monopoly::audio::Runtime::~Runtime |
( |
| ) |
|
◆ Runtime() [2/2]
◆ active()
◆ boardEdition()
◆ ensureReady()
| std::expected< void, std::string > monopoly::audio::Runtime::ensureReady |
( |
| ) |
|
◆ language()
◆ operator=()
◆ play()
| std::expected< void, std::string > monopoly::audio::Runtime::play |
( |
PlaybackKey |
key, |
|
|
data::DataId |
waveDataId, |
|
|
float |
gain = 1.0F, |
|
|
bool |
loop = false, |
|
|
std::uint32_t |
pitchHertz = 0U, |
|
|
std::int32_t |
panPercentage = 0 |
|
) |
| |
◆ playFile()
| std::expected< void, std::string > monopoly::audio::Runtime::playFile |
( |
PlaybackKey |
key, |
|
|
std::string_view |
relativePath, |
|
|
float |
gain = 1.0F, |
|
|
bool |
loop = false, |
|
|
std::uint32_t |
pitchHertz = 0U, |
|
|
std::int32_t |
panPercentage = 0 |
|
) |
| |
◆ positionTicks()
| std::optional< std::int32_t > monopoly::audio::Runtime::positionTicks |
( |
PlaybackKey |
key | ) |
const |
|
noexcept |
◆ setGain()
◆ setLooping()
◆ setPanning()
| void monopoly::audio::Runtime::setPanning |
( |
PlaybackKey |
key, |
|
|
std::int32_t |
percentage |
|
) |
| |
|
noexcept |
◆ setPitch()
| void monopoly::audio::Runtime::setPitch |
( |
PlaybackKey |
key, |
|
|
std::uint32_t |
hertz |
|
) |
| |
|
noexcept |
◆ stop()
◆ stopAll()
| void monopoly::audio::Runtime::stopAll |
( |
| ) |
|
|
noexcept |
◆ synchronizeSequence()
| std::expected< void, std::string > monopoly::audio::Runtime::synchronizeSequence |
( |
PlaybackKey |
key, |
|
|
std::int32_t |
position, |
|
|
bool |
paused, |
|
|
std::uint64_t |
seekGeneration |
|
) |
| |
◆ update()
| void monopoly::audio::Runtime::update |
( |
| ) |
|
|
noexcept |
The documentation for this class was generated from the following files: