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
11namespace monopoly::audio
12{
14 {
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}
std::vector< std::byte > bytes
unsigned index
std::expected< DecodedWave, std::string > decodeWave(std::span< const std::byte > bytes)