PDA

View Full Version : Use modules to distribute sounds?



Astinus
December 21st, 2007, 16:34
How hard would it be to adjust the module system in FGII to play sounds?

At the moment, we can predistribute modules with images and trigger them to load locally on client machines. How much work would be necessary to do the same with sounds?

What I picture is that when the GM triggers a sound in a module, it loads locally, playing on each client's default media player.

I have no idea how much programming would be required to pull this off. Just a thought.

Griogre
December 21st, 2007, 22:13
For security reasons FG does not allow LUA scripts access to outside files and apps. *shrug* I would have taken the same position as a developer too, most likely - you don't want your app to be the vehicle that allows malicious code to delete peoples' hard drives, or set up zombies. :p

Oberoten
December 21st, 2007, 23:13
Zombies?
*****s Shotgun*
We know how to deal with those...

Kalan
December 22nd, 2007, 13:57
brainnnssss......brainnsssssss.....

Mellock
December 22nd, 2007, 15:36
*rolls a D10 and frantically starts pulling the cord on his chainsaw*
Muuuhahahhaaaaaa

Foen
December 23rd, 2007, 07:11
*wipes brains off his shirt*

Back to the OP question: as you can distribute graphic files with a ruleset and link to them without breaking the Lua sandbox, there is no reason why sound files couldn't be distributed as well ... in theory.

It will be down to one of the devs to say if/when this might be included in FG functionality though.

Have a great yuletide folks!

Stuart

Asgorath
January 15th, 2008, 14:20
Even compressed sound files take a lot of band witch .
Ifs preferable to use external program like TeamSpeak.

Pikup
January 23rd, 2008, 17:29
How would you play a specific soundfile with Teamspeak?

Pikup

sloejack
January 23rd, 2008, 19:33
How would you play a specific soundfile with Teamspeak?

Pikup

Without having a teamspeak client to look at, I had to leverage the interweb for the answer but it seems that the following would sort you out.

Answer courtesy of posting on teamspeak forums (https://forum.teamspeak.com/showthread.php?t=27288)

You just need a few things:
A good media player that can be controlled over HTTP, e.g.
Winamp ( with this plugin https://classic.winamp.com/plugins/details.php?id=138684 )

Then set up your player to be controllable over http.
Start the TeamSpeak Client on the PC and join the channel you want. Set your record settings to "Stereomix" or something that records everything that the PC is going to send over its speakers. Configure TeamSpeak with Voice Activation.
That's it.

Now you can control your media player using the website you just configured and select the tracks you want to play.