stop sound

Talk about making games.

stop sound

Postby Wolly08 » Tue Aug 21, 2007 11:06 am

hi im making a music player and i was just wondering if anybody had any usefull codes or ideas :) :) :) (+1 point for any ideas/codes i use :) )PS a code to stop the music would be FAB
Wolly08
 
Posts: 39
Joined: Wed Jul 25, 2007 8:34 pm
Score: 2 Give a positive score

Postby 98700 » Tue Aug 21, 2007 12:59 pm

how bout u do a background thing like on windows media player? and make it so u can change.
Forum Me and Game A Gogo are administrating:
http://jacobtzgamz.freeforums.org/
98700
 
Posts: 106
Joined: Fri Jun 08, 2007 3:46 pm
Location: in your closet
Score: 1 Give a positive score

Postby cyber ruler » Wed Aug 22, 2007 2:08 am

to stop music you need a short (as short as possible) sound file. when you want the music to stop, you play the short sound file on the lowest possible volume. It will be so queit, nobody can hear it, and it will stop all other sounds.

it won't work for stopping sounds, but it will stop music, but you need to be sure you have the sound under playmusic in stead of playsound. It has always worked for me.
All of my friends tell me programming is my thing. I go to tech school and I'm in I.T., yep, programming all day. My friends ask for help all of the time. But, they tell me my graphics suck... and I have to agree. O, well :/
cyber ruler
 
Posts: 52
Joined: Sat Apr 28, 2007 7:59 pm
Location: Je ne parle englais : /
Score: 0 Give a positive score

Postby Jay S. » Wed Aug 22, 2007 2:04 pm

Perhaps you could also have a part to adjust the volume. Say if you're playing music, you could create an event to change the musicvol (short for music volume) variable.

cyber ruler wrote:it won't work for stopping sounds, but it will stop music, but you need to be sure you have the sound under playmusic in stead of playsound. It has always worked for me.

In case you need it Wolly, you can stop sounds using the stopSound function:
Code: Select all
stopSound(channel);

where channel is the channel number of the sound currently playing. :)
User avatar
Jay S.
 
Posts: 118
Joined: Thu Apr 26, 2007 6:51 pm
Location: My computer desk. :P
Score: 9 Give a positive score

Postby cyber ruler » Thu Aug 23, 2007 12:34 am

hmm... I never noticed that function :?
All of my friends tell me programming is my thing. I go to tech school and I'm in I.T., yep, programming all day. My friends ask for help all of the time. But, they tell me my graphics suck... and I have to agree. O, well :/
cyber ruler
 
Posts: 52
Joined: Sat Apr 28, 2007 7:59 pm
Location: Je ne parle englais : /
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron