API Reference › Audio › Audio.named
method

Audio.named

Audio.named(name: s) -> int

Looks a sound up in the bank by the name Audio.define (or Assets.enqueue) gave it.

Example

# doc-check: skip — illustrative
let hit = Audio.named(name: "hit")
← All symbols