|
int | setup (const std::string &path, size_t bufferSize, size_t channels, unsigned int sampleRate) |
|
void | setSamples (std::vector< float > &buffer) |
|
void | setSamples (float const *src, size_t samplesCount) |
|
size_t | getLength () const |
|
size_t | getChannels () const |
|
int | getSampleRate () const |
|
|
enum | Mode { kRead,
kWrite
} |
|
enum | { kNumBufs = 2
} |
|
int | setup (const std::string &path, size_t bufferSize, Mode mode, size_t channels=0, unsigned int sampleRate=0) |
|
void | scheduleIo () |
|
std::vector< float > & | getRtBuffer () |
|
void | threadLoop () |
|
volatile size_t | ioBuffer |
|
size_t | ioBufferOld |
|
std::array< std::vector< float >
, kNumBufs > | internalBuffers |
|
std::thread | diskIo |
|
size_t | size |
|
volatile bool | stop |
|
bool | ramOnly |
|
size_t | rtIdx |
|
SNDFILE * | sndfile = NULL |
|
SF_INFO | sfinfo = { 0 } |
|
int AudioFileWriter::setup |
( |
const std::string & |
path, |
|
|
size_t |
bufferSize, |
|
|
size_t |
channels, |
|
|
unsigned int |
sampleRate |
|
) |
| |
Open a file and prepare to write to it.
- Parameters
-
path | Path to the file |
bufferSize | the size of the internal buffer. |
channels | the number of channels |
void AudioFileWriter::setSamples |
( |
std::vector< float > & |
buffer | ) |
|
Push interleaved samples to the file for writing
- Parameters
-
buffer | the source buffer. Its size() must be a multiple of getChannels(). |
The documentation for this class was generated from the following files:
- libraries/AudioFile/AudioFile.h
- libraries/AudioFile/AudioFile.cpp