ADC Home > Reference Library > Reference > Audio > Carbon > Disc Recording Framework Reference

 


DRTrack(AudioContentCreation)

Extends Class:
Declared In:

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.



Methods

+trackForAudioFile:
Creates a DRTrack capable of burning RedBook CD audio from a QuickTime readable file.
+trackForAudioOfLength:producer:
Creates a DRTrack capable of burning RedBook CD audio.

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.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2008-04-01