Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::audio Namespace Reference

Classes

struct  DecodedWave
 
struct  Legacy2DSoundMix
 
struct  PlaybackKey
 
class  Runtime
 
struct  StereoPanGains
 

Enumerations

enum class  PlaybackDomain : std::uint8_t { Sequence , Interface , Music , Voice }
 

Functions

constexpr float legacyPitchFrequencyRatio (std::uint32_t requestedHertz, std::uint32_t originalHertz) noexcept
 
constexpr StereoPanGains legacyPanGains (std::int32_t percentage) noexcept
 
constexpr Legacy2DSoundMix legacy2DSoundMix (std::uint8_t baseVolume, std::int32_t centerX, std::int32_t left=0, std::int32_t right=800, std::int32_t quietDistance=1000) noexcept
 
std::expected< DecodedWave, std::string > decodeWave (std::span< const std::byte > bytes)
 
std::uint32_t legacyWaveDurationTicks (std::span< const std::uint8_t > riffWave, std::uint32_t ticksPerSecond) noexcept
 

Enumeration Type Documentation

◆ PlaybackDomain

enum class monopoly::audio::PlaybackDomain : std::uint8_t
strong
Enumerator
Sequence 
Interface 
Music 
Voice 

Definition at line 99 of file AudioRuntime.hpp.

Function Documentation

◆ decodeWave()

std::expected< DecodedWave, std::string > monopoly::audio::decodeWave ( std::span< const std::byte >  bytes)

Definition at line 208 of file AudioWaveDecoder.cpp.

◆ legacy2DSoundMix()

constexpr Legacy2DSoundMix monopoly::audio::legacy2DSoundMix ( std::uint8_t  baseVolume,
std::int32_t  centerX,
std::int32_t  left = 0,
std::int32_t  right = 800,
std::int32_t  quietDistance = 1000 
)
constexprnoexcept

Definition at line 63 of file AudioRuntime.hpp.

◆ legacyPanGains()

constexpr StereoPanGains monopoly::audio::legacyPanGains ( std::int32_t  percentage)
constexprnoexcept

Definition at line 44 of file AudioRuntime.hpp.

◆ legacyPitchFrequencyRatio()

constexpr float monopoly::audio::legacyPitchFrequencyRatio ( std::uint32_t  requestedHertz,
std::uint32_t  originalHertz 
)
constexprnoexcept

Definition at line 22 of file AudioRuntime.hpp.

◆ legacyWaveDurationTicks()

std::uint32_t monopoly::audio::legacyWaveDurationTicks ( std::span< const std::uint8_t >  riffWave,
std::uint32_t  ticksPerSecond 
)
noexcept

Definition at line 31 of file LegacyWave.cpp.