Function

MusicSequenceGetAUGraph

Gets the audio processing graph associated with a music sequence.

Declaration

OSStatus MusicSequenceGetAUGraph(MusicSequence inSequence, AUGraph  _Nullable *outGraph);

Parameters

inSequence

The music sequence whose associated audio processing graph you want to get.

outGraph

On output, the audio processing graph associated with the music sequence.

Return Value

A result code.

Discussion

If no audio processing graph is already associated with the music sequence, this function creates a default graph. The default graph contains an Instrument unit (of type DLSMusicDevice) and a dynamic compressor unit (of type DynamicCompressor). In this case, all music tracks in the music sequence have their outputs directed to the Instrument unit.

See Also