lua audio

Posted by Oriol on Sat 18 Jul 2009 08:09 PM — 1 posts, 10,485 views.

#0
Hello:
Just wanted to let all of you know that me and tspivey have coded a dll library in pb for playing audio in mush and a mushclient plugin that goes with it.
It plays wav/mp3/ogg/etc, it can loop, has a volume control and and pan features.
I'll try to explain how to use it here.
Sound("loop=file.wav) will start looping.
Sound("stop=file.wav) will start looping.
Sound("stop=all") will stop all loops.
Sound("volume=0-100) controls volume
Sound("pan=-100-100 stereo field panning
I coded a volume control using f11 and f12 keys separately, let me know if you're interested.
The original plugin and windows dll can be downloaded from
http://trashcan.scrapping.cc/tmp/
There's no documentation on it yet, I tried to explain its functions above. If you find any bugs post them here.

Thanks to Dentin from http://dentinmud.org/alter for providing the pan equations.