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

Decodes U-law data to Linear PCM audio data. More...

#include <ULawDecoder.hpp>

Static Public Member Functions

static bool decode (const std::vector< uint8 > &inputData, std::vector< float > &outputData)
 Decodes a U-law audio buffer into float audio buffer.
 

Detailed Description

Decodes U-law data to Linear PCM audio data.

ULawDecoder class.

Member Function Documentation

◆ decode()

bool switchboard::ULawDecoder::decode ( const std::vector< uint8 > & inputData,
std::vector< float > & outputData )
static

Decodes a U-law audio buffer into float audio buffer.

Parameters
inputDataThe U-law encoded audio buffer.
outputDataThe decoded float audio buffer.
Returns
True if the decoding was successful, false otherwise.