load
Used to load an Audio file into memory.
Parameters
provide the Platform Context (this is mostly to accommodate Android)
provide the path and filename for the audio file as a String
Example:
val audioByte: AudioByte = AudioByte() // Create an AudioByte instance
val clickSound: Any = audioByte.load(Res.getUri("files/click.mp3")) // Load the audio file into memoryUsed to load an Audio file into memory.
Parameters
provide the Platform Context (this is mostly to accommodate Android)
provide the path and filename for the audio file as a String
Example:
val audioByte: AudioByte = AudioByte() // Create an AudioByte instance
val clickSound: Any = audioByte.load(Res.getUri("files/click.mp3")) // Load the audio file into memoryUsed to load an Audio file into memory.
Parameters
provide the Platform Context (this is mostly to accommodate Android)
provide the path and filename for the audio file as a String
Example:
val audioByte: AudioByte = AudioByte() // Create an AudioByte instance
val clickSound: Any = audioByte.load(Res.getUri("files/click.mp3")) // Load the audio file into memoryUsed to load an Audio file into memory.
Parameters
provide the Platform Context (this is mostly to accommodate Android)
provide the path and filename for the audio file as a String
Example:
val audioByte: AudioByte = AudioByte() // Create an AudioByte instance
val clickSound: Any = audioByte.load(Res.getUri("files/click.mp3")) // Load the audio file into memoryUsed to load an Audio file into memory.
Parameters
provide the Platform Context (this is mostly to accommodate Android)
provide the path and filename for the audio file as a String
Example:
val audioByte: AudioByte = AudioByte() // Create an AudioByte instance
val clickSound: Any = audioByte.load(Res.getUri("files/click.mp3")) // Load the audio file into memoryUsed to load an Audio file into memory.
Parameters
provide the Platform Context (this is mostly to accommodate Android)
provide the path and filename for the audio file as a String
Example:
val audioByte: AudioByte = AudioByte() // Create an AudioByte instance
val clickSound: Any = audioByte.load(Res.getUri("files/click.mp3")) // Load the audio file into memory