Sound

constructor(file: File)

Create a new Sound file with the given file.

Parameters

file

the file to play


constructor(@RawRes resourceId: Int)

Create a new Sound file with the given resource ID.

Parameters

resourceId

the raw resource ID to play (e.g R.raw.ss_r2d2_up)