NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches

Functions

Buffer nnl::adpcm::Encode (const std::vector< i16 > &pcm)
 Encodes a PCM audio buffer into ADPCM format.
std::vector< i16nnl::adpcm::Decode (BufferView adpcm)
 Decodes an ADPCM audio buffer into PCM format.

Detailed Description

Function Documentation

◆ Decode()

std::vector< i16 > nnl::adpcm::Decode ( BufferView adpcm)

Decodes an ADPCM audio buffer into PCM format.

This function takes an ADPCM encoded buffer and decodes it back into a vector of PCM audio samples.

Parameters
adpcmA buffer representing the ADPCM encoded audio data.
Returns
A vector of 16-bit PCM audio samples.
See also
nnl::adpcm::Encode

◆ Encode()

Buffer nnl::adpcm::Encode ( const std::vector< i16 > & pcm)

Encodes a PCM audio buffer into ADPCM format.

This function takes a vector of PCM audio samples and encodes it into an ADPCM buffer.

Parameters
pcmA vector of 16-bit signed integers representing the PCM audio samples.
Returns
Buffer The encoded ADPCM audio buffer.
See also
nnl::adpcm::Decode