Mixxx
|
Decodes M4As (etc) using the AudioToolbox framework included as part of Core Audio on OS X (and iOS). More...
#include <soundsourcecoreaudio.h>
Public Member Functions | |
SoundSourceCoreAudio (QString filename) | |
~SoundSourceCoreAudio () | |
int | open () |
long | seek (long filepos) |
unsigned | read (unsigned long size, const SAMPLE *buffer) |
long unsigned | length () |
int | parseHeader () |
Static Public Member Functions | |
static QList< QString > | supportedFileExtensions () |
Decodes M4As (etc) using the AudioToolbox framework included as part of Core Audio on OS X (and iOS).
Definition at line 45 of file soundsourcecoreaudio.h.
SoundSourceCoreAudio::SoundSourceCoreAudio | ( | QString | filename | ) |
Definition at line 23 of file soundsourcecoreaudio.cpp.
SoundSourceCoreAudio::~SoundSourceCoreAudio | ( | ) |
Definition at line 31 of file soundsourcecoreaudio.cpp.
unsigned long SoundSourceCoreAudio::length | ( | ) | [inline, virtual] |
Implements Mixxx::SoundSource.
Definition at line 231 of file soundsourcecoreaudio.cpp.
int SoundSourceCoreAudio::open | ( | ) | [virtual] |
This code blocks works with OS X 10.5+ only. DO NOT DELETE IT for now.
TODO: Use FSRef for compatibility with 10.4 Tiger. Note that ExtAudioFileOpen() is deprecated above Tiger, so we must maintain both code paths if someone finishes this part of the code. FSRef fsRef; CFURLGetFSRef(reinterpret_cast<CFURLRef>(url.get()), &fsRef); err = ExtAudioFileOpen(&fsRef, &m_audioFile);
Implements Mixxx::SoundSource.
Definition at line 37 of file soundsourcecoreaudio.cpp.
int SoundSourceCoreAudio::parseHeader | ( | ) | [virtual] |
Implements Mixxx::SoundSource.
Definition at line 235 of file soundsourcecoreaudio.cpp.
unsigned int SoundSourceCoreAudio::read | ( | unsigned long | size, |
const SAMPLE * | buffer | ||
) | [virtual] |
Implements Mixxx::SoundSource.
Definition at line 195 of file soundsourcecoreaudio.cpp.
long SoundSourceCoreAudio::seek | ( | long | filepos | ) | [virtual] |
Implements Mixxx::SoundSource.
Definition at line 175 of file soundsourcecoreaudio.cpp.
QList< QString > SoundSourceCoreAudio::supportedFileExtensions | ( | ) | [static] |
Definition at line 283 of file soundsourcecoreaudio.cpp.