Switchboard SDK
Loading...
Searching...
No Matches
switchboard::OggEncoder Class Reference

Encodes Ogg/Vorbis data from PCM audio data. More...

#include <OggEncoder.hpp>

Static Public Member Functions

static const std::vector< uint8 > encode (const AudioBuffer< int16 > &inputBuffer, const uint sampleRate)
 Encodes inputBuffer and put into an Ogg format vector.
 
static const std::vector< uint8 > encode (const std::vector< int16 > &inputData, const uint sampleRate)
 Encodes inputData and put into an Ogg format vector.
 

Detailed Description

Encodes Ogg/Vorbis data from PCM audio data.

OggEncoder class.

Member Function Documentation

◆ encode() [1/2]

const std::vector< uint8 > switchboard::OggEncoder::encode ( const AudioBuffer< int16 > & inputBuffer,
const uint sampleRate )
static

Encodes inputBuffer and put into an Ogg format vector.

Parameters
inputBufferInput buffer to encode.
sampleRateSample rate of input data.
Returns
Output Ogg data in a vector.

◆ encode() [2/2]

const std::vector< uint8 > switchboard::OggEncoder::encode ( const std::vector< int16 > & inputData,
const uint sampleRate )
static

Encodes inputData and put into an Ogg format vector.

Parameters
inputDataInput data to encode.
sampleRateSample rate of input data.
Returns
Output Ogg data in a vector.