Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: theparanoidlsdfreak on March 17, 2003, 09:51:57 PM

Title: Soundbox question
Post by: theparanoidlsdfreak on March 17, 2003, 09:51:57 PM
How can I play music in the first room?  I have a working sound file 003 (I tested it with death sound), but I don't know what to type when it says

(send gTheMusic:
         prevSignal()
         stop()
         number()
         loop()
         play()
      )
Title: Re:Soundbox question
Post by: Brian Provinciano on March 17, 2003, 09:56:17 PM
you see in the script there is:
        /****************************************
         * Set up the room's music to play here *
         ****************************************/
      (send gTheMusic:
         prevSignal(0)
         stop()
         number(scriptNumber)
         loop(-1)
         play()
      )

the loop(-1) means it loops (plays) forever. number(scriptNumber) means that the sound according to the current script is executed. For example, if it's room.002, sound.002 is played.

You could do something like this:
      (send gTheMusic:
         prevSignal(0)
         stop()
         number(3)
         loop(-1)
         play()
      )

To play your sound.003.
Title: Re:Soundbox question
Post by: FastaKilla on March 18, 2003, 02:03:29 PM
Thanks.  I will write maybe 1 or 2 songs, and just use some midis for the rest.  I am theparanoidlsdfreak, but I registered as Fasta Killa because that's my e-mail name.  So I will use this name in the game and on this board from now on.
Title: Re:Soundbox question
Post by: Cloudee1 on March 27, 2003, 04:19:27 AM
Alright it is definately official I am no programmer,

alright i copied and pasted the script plugged in my sound number... I compile looks likes it's going to work and then there's no sound, What's a title screen without music?

I used soundbox and made the file play with any and all options,

I don't even know where to begin, someone help?
Title: Re:Soundbox question
Post by: Brian Provinciano on March 27, 2003, 05:48:48 AM
If you hear no sound, your sound driver is incorrect for your machine. You can use sound drivers from existing SCI0 games, as well as the two included with the template game. Just modify resource.cfg in notepad.
Title: Re:Soundbox question
Post by: Cloudee1 on March 28, 2003, 04:57:05 AM
hey bri

If I haven't expressed my newness at computer programming I am about to

there is the std driver (standard)
ADL                which one of these is the other sound
GM                                         driver...


                      Ah never mind neither worked when I
                                 changed it in notepad. do I have to
                                            do more than just save

But really it doesn't matter FOR NOW I am having a hard enough time just scripting look get and use strings
Title: Re:Soundbox question
Post by: Brian Provinciano on March 28, 2003, 06:11:45 AM
WindowsNT/XP and even sometimes 9x have problems with sound in DOS games. It's most likely a problem with your Sound Card/Windows compatibility.