Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
LegacyWave.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <span>
5
6namespace monopoly::audio
7{
8 // Source/artlib/L_Sound.cpp::LE_SOUND_GetSoundDuration.
9 // Invalid/malformed input returns 0 like the retail helper.
10 [[nodiscard]] std::uint32_t legacyWaveDurationTicks(
11 std::span<const std::uint8_t> riffWave,
12 std::uint32_t ticksPerSecond = 60U) noexcept;
13}
unsigned index
std::uint32_t legacyWaveDurationTicks(std::span< const std::uint8_t > riffWave, std::uint32_t ticksPerSecond) noexcept