Results 1 to 5 of 5

Thread: weather and sound

  1. #1
    Guest

    Unhappy

    Hello and sorry to bother...
    I am playing at making a Dmod. I have set up to be sent to a bad place in the game by a mad merlin person. How do i get the sound of wind to come active as soon as Dink enters this area..IE... Dink is sent to the cold region, as soon as he pops into the snowy screen i want the sound of wind( i have a wind.c) and i need to to be windy on many screens until Dink finds his way out..
    i hope this makes sense..
    Thank you
    Mdevine( SteCatv)

  2. #2
    Lesser Wizard
    Join Date
    Jul 2002
    Location
    MI, USA
    Posts
    169

    Default

    First, make a global variable called "windsound" or something similar in main.c.

    Second, place your wind sound file in the 'sound' directory of your D-Mod, and add your sound to the list in start.c, and give it the next available number. For example, let's place it in slot 99.

    Then whenever you want to start the wind sound, try this:

    //Change 11025 to 16000 or 22050, whichever sounds best
    &windsound = playsound(99,11025,0,0,1);
    sound_set_survive(&windsound);

    And then when you want to stop it from playing, do this:

    sound_set_kill(&windsound);

  3. #3
    Guest

    Arrow

    Thank you so much..it is most appreciated...i was not sure if anyone still looked into this forum :}

  4. #4
    Guest

    Unhappy

    Excuse my stupidity but what do you mean by a " Global Variable" to be added into Start.c?
    thank you.
    Mdevine

  5. #5
    Serf
    Join Date
    Aug 2007
    Location
    Barcelona
    Posts
    2

    Default Weather Sounds

    There are some cool weather sound effects to download on sound-effect.com.

    -Mark

Similar Threads

  1. Online resource for music, sound fx and voiceover
    By Shockwave-Sound.Com in forum RTsoft Tavern
    Replies: 3
    Last Post: 04-16-2008, 04:31 PM
  2. Turning of sound
    By Daij-Djan in forum RTsoft Tavern
    Replies: 1
    Last Post: 03-31-2004, 09:52 PM
  3. Strange static sound
    By tamaralynn in forum Dink Smallwood HD
    Replies: 1
    Last Post: 11-22-2003, 02:32 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •