Mixxx

SoundSourceCoreAudio Class Reference

Decodes M4As (etc) using the AudioToolbox framework included as part of Core Audio on OS X (and iOS). More...

#include <soundsourcecoreaudio.h>

Inheritance diagram for SoundSourceCoreAudio:
Collaboration diagram for SoundSourceCoreAudio:

List of all members.

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 ()

Detailed Description

Decodes M4As (etc) using the AudioToolbox framework included as part of Core Audio on OS X (and iOS).

Author:
Albert Santoni <alberts at="" mixxx="" dot="" org>="">
Date:
Dec 12, 2010

Definition at line 45 of file soundsourcecoreaudio.h.


Constructor & Destructor Documentation

SoundSourceCoreAudio::SoundSourceCoreAudio ( QString  filename)

Definition at line 23 of file soundsourcecoreaudio.cpp.

SoundSourceCoreAudio::~SoundSourceCoreAudio ( )

Definition at line 31 of file soundsourcecoreaudio.cpp.


Member Function Documentation

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.

Here is the call graph for this function:

int SoundSourceCoreAudio::parseHeader ( ) [virtual]

Implements Mixxx::SoundSource.

Definition at line 235 of file soundsourcecoreaudio.cpp.

Here is the call graph for this function:

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.

Here is the caller graph for this function:

QList< QString > SoundSourceCoreAudio::supportedFileExtensions ( ) [static]

Definition at line 283 of file soundsourcecoreaudio.cpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines