NSUNI/NSLAR Library
a250670
Loading...
Searching...
No Matches
adpcm.hpp
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
NNL/common/fixed_type.hpp
"
15
#include "
NNL/common/io.hpp
"
16
17
namespace
nnl
{
24
29
namespace
adpcm
{
47
Buffer
Encode
(
const
std::vector<i16>& pcm);
59
std::vector<i16>
Decode
(
BufferView
adpcm
);
61
}
// namespace adpcm
62
64
}
// namespace nnl
fixed_type.hpp
Contains macros and definitions for fixed-width types.
nnl::adpcm::Decode
std::vector< i16 > Decode(BufferView adpcm)
Decodes an ADPCM audio buffer into PCM format.
nnl::adpcm::Encode
Buffer Encode(const std::vector< i16 > &pcm)
Encodes a PCM audio buffer into ADPCM format.
nnl::BufferView
Reader implementation for read-only memory buffers.
Definition
io.hpp:598
nnl::Buffer
std::vector< u8 > Buffer
A type alias for std::vector<u8> that denotes a raw, contiguous memory region that may be interpreted...
Definition
io.hpp:40
io.hpp
Provides classes for reading and writing binary data to and from various sources.
nnl::adpcm
Contains functions to encode and decode ADPCM audio buffers.
Definition
adpcm.hpp:29
nnl
Definition
exception.hpp:56
include
NNL
game_asset
audio
adpcm.hpp
Generated by
1.14.0