Contents

loadAudioFiles(at:)

Configures the sampler by loading the specified audio files.

Declaration

func loadAudioFiles(at audioFiles: [URL]) throws

Parameters

  • audioFiles:

    An array of audio file URLs to load.

Discussion

The framework loads the audio files into a new instrument with each audio file in its own sampler zone. The framework uses any information in the audio file for its placement in the instrument. For example, the root key and key range.

See Also

Configuring the Sampler Audio Unit