Audio SDK 9.0.0
Loading...
Searching...
No Matches
Krisp::AudioSdk::Al< FrameDataType > Class Template Reference

#include <krisp-audio-sdk-al.hpp>

Public Member Functions

void process (const FrameDataType *inputSamples, size_t numInputSamples, FrameDataType *outputSamples, size_t numOutputSamples)
 Processes an input frame of audio data.
 

Static Public Member Functions

static std::shared_ptr< Al< FrameDataType > > create (const AlSessionConfig &config)
 Creates a new instance of Al session.
 

Detailed Description

template<typename FrameDataType>
class Krisp::AudioSdk::Al< FrameDataType >
Template Parameters
FrameDataTypesupports int16 and float types.

Member Function Documentation

◆ create()

template<typename FrameDataType >
static std::shared_ptr< Al< FrameDataType > > Krisp::AudioSdk::Al< FrameDataType >::create ( const AlSessionConfig & config)
static

Creates a new instance of Al session.

Parameters
[in]configConfiguration for the Al Session.
Return values
std::shared_ptr<AlSession>on success
Exceptions
Throwsstd exception in case of error.

◆ process()

template<typename FrameDataType >
void Krisp::AudioSdk::Al< FrameDataType >::process ( const FrameDataType * inputSamples,
size_t numInputSamples,
FrameDataType * outputSamples,
size_t numOutputSamples )

Processes an input frame of audio data.

Parameters
[in]inputSamplesPointer to the input buffer containing audio samples. The buffer should hold enough samples to fill a frame of audio data, calculated as frameDuration * inputSampleRate / 1000 of FrameDataType samples.
[in]numInputSamplesThe number of samples in the input buffer. Must be sufficient to match the expected input frame size.
[out]outputSamplesPointer to the buffer for the processed audio samples. The caller must allocate a buffer of sufficient size to handle a frame of output samples, calculated as frameDuration * outputSampleRate / 1000 of FrameDataType samples.
[in]numOutputSamplesThe number of samples the output buffer can handle. Must be sufficient to match the expected output frame size.
Exceptions
Throwsa std exception in case of error.

The documentation for this class was generated from the following file: