Play the sound

Property definitions

app $ PlayableAudio :: play
	# Play the sound
	fun play do end
lib/app/audio.nit:46,2--47,16

ios :: audio $ PlayableAudio :: play
	redef fun play
	do
		var native = native
		if native != null then native.play_and_repare_async
	end
lib/ios/audio.nit:53,2--57,4

linux :: audio $ Sound :: play
	redef fun play do play_channel(-1, 0)
lib/linux/audio.nit:59,2--38

android :: audio $ Sound :: play
	redef fun play do
		if not is_loaded then load
		if self.error != null then return
		soundpool.play(soundpool_id)
	end
lib/android/audio.nit:577,2--581,4

linux :: audio $ Music :: play
	redef fun play
	do
		var native = native

		if native == null and error == null then
			# Lazy load
			load

			# Auto print errors on lazy loading only
			var error = error
			if error != null then print_error error
		end

		# If there's an error, silently skip
		if error != null then return
		native = self.native
		assert native != null

		# Play looping
		mix.play_music(native, -1)
	end
lib/linux/audio.nit:106,2--126,4

android :: audio $ Music :: play
	redef fun play do
		if not is_loaded then load
		if self.error != null then return
		media_player.start
	end
lib/android/audio.nit:651,2--655,4