audio:send_devices("AudioPlugin:Default") -- you will receive AudioOutputDevice events here
audio:set_output("AudioPlugin:Other", 2) -- "2" is a device reported by the above command
audio:say("AudioPlugin:Other", "Hello", 0.3)
audio:play("AudioPlugin:Default", "aww-sound-effect.mp3", 0.3)
Note: This breaks all say and play, as there now is a 3rd argument, that decides which plugin to use
Solves https://github.com/dennis/slipstream/issues/34
Example
Change init-0.4.0
scripts/audio.lua
Note: This breaks all
say
andplay
, as there now is a 3rd argument, that decides which plugin to use