Contents

NewMusicPlayer(_:)

Creates a new music player.

Declaration

func NewMusicPlayer(_ outPlayer: UnsafeMutablePointer<MusicPlayer?>) -> OSStatus

Parameters

  • outPlayer:

    On output, the newly created music player.

Return Value

A result code

Discussion

A music player can send its output to an audio processing graph, to a MIDI endpoint, or to a combination of both.

See Also

Managing a Music Player