DRTrack(AudioContentCreation) Class Reference

Declared in
DRTrack_ContentSupport.h

Overview

This category on DRTrack creates a track configured to burn audio data to disc. It implements two methods trackForAudioOfLength:producer: and trackForAudioFile: which create and return a fully configured track to the caller.

Tasks

Miscellaneous

Class Methods

trackForAudioFile:

Creates a DRTrack capable of burning RedBook CD audio from a QuickTime readable file.

+ (DRTrack*) trackForAudioFile:(NSString*)path;
Parameters
path

The path to the file. This file must be one that can be read by QuickTime.

Return Value

An autoreleased DRTrack

Discussion

This method creates a track object configured and primed to output RedBook audio CD data. It accepts any file readable by QuickTime and extracts the audio data (if any) from the file, translating that into the correct format for output to the disc.

trackForAudioOfLength:producer:

Creates a DRTrack capable of burning RedBook CD audio.

+ (DRTrack*) trackForAudioOfLength:(DRMSF*)length producer:(id)producer;
Parameters
length

The length of the track that will be produced.

producer

The object to use as the data producer

Return Value

An autoreleased DRTrack

Discussion

This method configures a track object configured to accept standard RedBook audio CD data. It is up to the client to provide that data to the track object through the producer object. The producer is an object which implements the DRTrackDataProduction protocol.