Monopoly — Portage moderne
0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
AudioWaveDecoder.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <SDL3/SDL.h>
4
5
#include <cstddef>
6
#include <expected>
7
#include <span>
8
#include <string>
9
#include <vector>
10
11
namespace
monopoly::audio
12
{
13
struct
DecodedWave
14
{
15
SDL_AudioSpec
spec
{};
16
std::vector<Uint8>
pcm
;
17
};
18
19
// SDL handles ordinary PCM/ADPCM WAVE. Retail dialog banks also contain
20
// Microsoft GSM 6.10 WAV49 (format 0x0031), decoded through bundled libgsm.
21
[[
nodiscard
]] std::expected<DecodedWave, std::string>
22
decodeWave
(std::span<const std::byte>
bytes
);
23
}
bytes
std::vector< std::byte > bytes
Definition
BoardTextureRuntime.cpp:15
index
unsigned index
Definition
ModernIBarSkin.cpp:25
monopoly::audio
Definition
AudioRuntime.cpp:15
monopoly::audio::decodeWave
std::expected< DecodedWave, std::string > decodeWave(std::span< const std::byte > bytes)
Definition
AudioWaveDecoder.cpp:208
monopoly::audio::DecodedWave
Definition
AudioWaveDecoder.hpp:14
monopoly::audio::DecodedWave::pcm
std::vector< Uint8 > pcm
Definition
AudioWaveDecoder.hpp:16
monopoly::audio::DecodedWave::spec
SDL_AudioSpec spec
Definition
AudioWaveDecoder.hpp:15
AudioWaveDecoder.hpp
Generated by
1.9.8