Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Rocket

by Coruscate (Sexton)
on May 05, 2003 at 07:08 UTC ( #255579=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://255579]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2023-06-04 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (20 votes). Check out past polls.

    Notices?