Storm Dragon
2012-03-24 23:54:03 UTC
Hi,
I am trying to build sound capabilities into a mud client trigger pack.
I am making a soundpack and background music/ambiance for Alter Aeon,
http://www.alteraeon.com/
For command sounds like fireballs, sword slashes, etc I am using sox
because they are just quick clips that take less than a second to play.
Sox also works for ambiance sounds, like in a forest playing bird sounds
and having them pan from one side to the other so it sounds like things
are in different places around you.
The really dificult part, so I am finding, is playing a background sound
for the area. Like, for example, if you are near a stream and the
terrain is stream I would need to play (loop) a bit of running water
sound. But, terrain can change at any time, so if you move to forest, I
need to stop the running water file and load the forest file. It's easy
to do by hand but not so much with code in this trigger pack lol.
So, after all this rambling, my question is, can I get cmus to launch
with no gui, play a file, set volume, and stop playing remotely from
within another program? If so, how do I do it. If it is not possible, do
you know of anything that may work for this?
Thanks
Storm
I am trying to build sound capabilities into a mud client trigger pack.
I am making a soundpack and background music/ambiance for Alter Aeon,
http://www.alteraeon.com/
For command sounds like fireballs, sword slashes, etc I am using sox
because they are just quick clips that take less than a second to play.
Sox also works for ambiance sounds, like in a forest playing bird sounds
and having them pan from one side to the other so it sounds like things
are in different places around you.
The really dificult part, so I am finding, is playing a background sound
for the area. Like, for example, if you are near a stream and the
terrain is stream I would need to play (loop) a bit of running water
sound. But, terrain can change at any time, so if you move to forest, I
need to stop the running water file and load the forest file. It's easy
to do by hand but not so much with code in this trigger pack lol.
So, after all this rambling, my question is, can I get cmus to launch
with no gui, play a file, set volume, and stop playing remotely from
within another program? If so, how do I do it. If it is not possible, do
you know of anything that may work for this?
Thanks
Storm
--
Vinux Publicity Coordinator: http://www.vinuxproject.org/
Registered Linux user number 508465: https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.us/
My last.fm profile: http://www.last.fm/user/stormdragon2976
"And for every crossing where two roads diverged. I fell one false decision. But still you find me on this earth."
Van Canto - I Stand Alone
Vinux Publicity Coordinator: http://www.vinuxproject.org/
Registered Linux user number 508465: https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.us/
My last.fm profile: http://www.last.fm/user/stormdragon2976
"And for every crossing where two roads diverged. I fell one false decision. But still you find me on this earth."
Van Canto - I Stand Alone