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

Encodes MP3 data from Linear PCM audio data. More...

#include <Mp3Encoder.hpp>

Static Public Member Functions

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

Detailed Description

Encodes MP3 data from Linear PCM audio data.

Mp3Encoder class.

Member Function Documentation

◆ encode() [1/2]

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

Encodes inputBuffer and put into an MP3 format vector.

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

◆ encode() [2/2]

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

Encodes inputData and put into an MP3 format vector.

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