# Load the sound from its resource id
fun load_id(context: NativeActivity, id:Int): Sound do
var resval = nsoundpool.load_id(context, id, priority)
if resval == -1 then
self.error = new Error("Unable to load sound from assets")
return new Sound.priv_init(null, -1, self, self.error)
else
return new Sound.priv_init(null, resval, self, null)
end
end
lib/android/audio.nit:275,2--284,4