#include <soundfile.h>
Public Slots | |
void | seek (Position new_pos) |
Public Member Functions | |
bool | open (const QString &fileName) |
void | close () |
int | process (unsigned long size, float *output) |
Protected Attributes | |
SNDFILE * | m_sndfile |
QReadWriteLock | m_sndfile_lock |
SF_INFO | m_info |
QReadWriteLock | m_info_lock |
AudioCtl * | m_audioctl |
bool Soundfile::open | ( | const QString & | fileName | ) |
opens a mono or stereo soundfile
fileName | path to the file |
void Soundfile::close | ( | ) |
close the soundfile if loaded
int Soundfile::process | ( | unsigned long | size, | |
float * | output | |||
) |
adds the audiodata of this track to the buffer output
size | nr. of samples to write (bufsize) | |
output | output buffer: always stereo !!! (see AudioCtl how to write into this buffer !) |
void Soundfile::seek | ( | Position | new_pos | ) | [slot] |
seek in the sound file
new_pos | seek in samples from the beginning |
SNDFILE* Soundfile::m_sndfile [protected] |
the soundfile pointer and it's lock
SF_INFO Soundfile::m_info [protected] |
info about the soundfile and it's lock
AudioCtl* Soundfile::m_audioctl [protected] |
the audio controller