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

Encodes raw audio data using various audio codecs. More...

#include <AudioEncoder.hpp>

Static Public Member Functions

static const std::vector< uint8 > encode (AudioBuffer< float > &buffer, Codec format)
 Encodes the content of the provided audio buffer with the specified codec.
 

Detailed Description

Encodes raw audio data using various audio codecs.

AudioEncoder class

Member Function Documentation

◆ encode()

const std::vector< uint8 > switchboard::AudioEncoder::encode ( AudioBuffer< float > & buffer,
Codec format )
static

Encodes the content of the provided audio buffer with the specified codec.

Parameters
bufferThe audio buffer that holds the raw audio data.
formatThe codec to use to encode the raw audio data.
Returns
The encoded audio bytes.