• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

3d Sound Won't Play

Status
Not open for further replies.
Level 16
Joined
Mar 27, 2011
Messages
1,349
I am trying to make a 3d sound play at a region. Simply put, it wont. Why?

attachment.php


I have also tried many other types such as "General, Spells, Animations, Hero Speech, etc. Im not sure what each different one does.

  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Sheep[1] = Sheep1 <gen>
      • Set Sheep[2] = Sheep2 <gen>
      • Set Sheep[3] = Sheep3 <gen>
  • Farm Sounds
    • Events
      • Unit - A unit enters Farm <gen>
    • Conditions
      • ((Owner of (Triggering unit)) is in Players) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Mortar Team
        • Then - Actions
          • Set SheepCounter = (SheepCounter + 1)
          • Set TempPoint = (Center of Farm Pig <gen>)
          • Sound - Play Sheep[SheepCounter] at 100.00% volume, attached to (Triggering unit)
          • Custom script: call RemoveLocation (udg_TempPoint)
          • Set TempUnitGroup = (Units in Farm <gen> owned by Neutral Passive)
          • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of (Triggering unit))
              • Set SheepPoint = (Position of (Picked unit))
              • Unit - Move (Picked unit) instantly to SheepPoint, facing TempPoint
              • Custom script: call RemoveLocation (udg_SheepPoint)
              • Custom script: call RemoveLocation (udg_TempPoint)
          • Custom script: call DestroyGroup (udg_TempUnitGroup)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SheepCounter Equal to 3
            • Then - Actions
              • Set SheepCounter = 0
            • Else - Actions
        • Else - Actions
The screen is looking directly at the region where the sound is being played. I also have a unit right near it, with vision of the area. No sound plays. I dont have any problem playing a non-3d sound.
 

Attachments

  • 3d Sound.jpg
    3d Sound.jpg
    46.2 KB · Views: 203
Level 16
Joined
Mar 27, 2011
Messages
1,349
Have you tried letting two units enter the region? Sounds are notorious for being difficult to preload. If the second unit who enters Farm procs the sound, let me know.

Alright I'll let you guys know when I come back from work.

It could be that the sounds must be 22050 Hz.

The "Sheep1" sound was from the Warcraft game, under one of the campaign folders within the sound editor. Not imported.
 
The "Sheep1" sound was from the Warcraft game, under one of the campaign folders within the sound editor. Not imported.

I think he's trying to say that the 3d sound requires that the source file be sampled ~22kHz instead of ~44kHz - perhaps he's suggesting that some sounds are not meant to be played "3d" - but I've never heard of such a requirement
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
I converted the sound into a .wav 22,050 HZ mono 16 bit sound with no luck. The sound does not play. If I use other sounds, those 3d sound does play. So it must not have anything to do with the triggers. I have no idea what I'm doing wrong here...

Maybe I should give up on either using 3d sounds, or just use other sounds...
 
Last edited:
Level 16
Joined
Mar 27, 2011
Messages
1,349
attachment.php

Effect: There is no "General". However there is a default. Set to Default.
Channel: Set to General.

Still does not work :(

It could be that the sounds must be 22050 Hz.

122031d1358750852-3d-sound-wont-play-sheep2.jpg

Funny enough, the second sheep was already a 20500 HZ sound file. Not sure why the 2 different sheep files are different, however this rules out the possibility that there is something wrong with the sound file ( I think it does anyway ).
 

Attachments

  • 3d Sound Options.jpg
    3d Sound Options.jpg
    50.2 KB · Views: 220
  • Sheep2.jpg
    Sheep2.jpg
    45.5 KB · Views: 164
Last edited:
Status
Not open for further replies.
Top