arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
audio_tools::ResampleBuffer< T > Class Template Reference

Resampler which uses an internal buffer. We can write the original data and then access the data as array. More...

#include <Resample.h>

Public Member Functions

bool begin (int channels, int factor, ResampleScenario scenario)
 
T * data ()
 
uint8_t * dataBytes ()
 
int factor ()
 prposed factor for upsampling
 
operator[] (int idx)
 
size_t samples ()
 Provides the number of avilable samples.
 
size_t size ()
 privides the size in bytes
 
size_t write (const T *src, size_t sample_count)
 Writes the data up or downsampled to the final destination.
 
size_t write (const uint8_t *src, size_t byte_count)
 Writes the data up or downsampled to the final destination.
 

Protected Attributes

int fact
 
int resampled_byte_count
 
MemoryStream resampled_data
 
Resample< T > resampler
 

Detailed Description

template<typename T>
class audio_tools::ResampleBuffer< T >

Resampler which uses an internal buffer. We can write the original data and then access the data as array.

Author
Phil Schatzmann
Template Parameters
T

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