mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
29 lines
822 B
C++
29 lines
822 B
C++
// DR. ROBOTNIK'S RING RACERS
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2024 by Ronald "Eidolon" Kinard
|
|
// Copyright (C) 2024 by Kart Krew
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef __SRB2_AUDIO_CHUNK_LOAD_HPP__
|
|
#define __SRB2_AUDIO_CHUNK_LOAD_HPP__
|
|
|
|
#include <cstddef>
|
|
#include <optional>
|
|
|
|
#include <tcb/span.hpp>
|
|
|
|
#include "sound_chunk.hpp"
|
|
|
|
namespace srb2::audio
|
|
{
|
|
|
|
/// @brief Try to load a chunk from the given byte span.
|
|
std::optional<SoundChunk> try_load_chunk(tcb::span<std::byte> data);
|
|
|
|
} // namespace srb2::audio
|
|
|
|
#endif // __SRB2_AUDIO_CHUNK_LOAD_HPP__
|