http://www.perlmonks.org?node_id=255579


in reply to Rocket

Perhaps the game could be modified to permit playing the audio on *nix systems as well. Modify the sound config checks so that playSound() will execute the Win32::Sound method on a windows box, while it will execute the following line on a *nix box:

system "play " . ROCKET_DIR . "/$sound >/dev/null 2>&1 &";

This way, *nix users get sound too ;)


If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, please reply to this node or /msg me to inform me as to what is wrong with the post, so that I may update the node to the best of my ability.

Replies are listed 'Best First'.
Re: Re: Rocket
by tinypig (Beadle) on May 05, 2003 at 20:11 UTC
    Yep, I definitely need to add sound support for Unix. Thanks for the how-to info.