Creates a sound object that represents a custom sound file.
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+Beta
The name of the sound file to play. This file must be located in the current executable’s main bundle or in the
Library/Soundsdirectory of the current app container directory. This parameter must not be
A sound object representing the custom sound.
If a sound file with the given name exists both in the current bundle and in the
Library/Sounds folder, this method chooses the file in the