I have a set of sound files in my Assets.xcassets:

I am trying to get the path to one of these audio files, for example:
let path: String = Bundle.main.path(forResource: "acoustic_grand_piano/A4", ofType: "f32")!
But I get it EXC_BAD_INSTRUCTION. I tried looking on the Internet, but found nothing in the datasets.
How can I get the contents of one of these files?
Thank!
source
share