Jump to content


Photo

3D sound


  • Please log in to reply
9 replies to this topic

#1 Nick-babzz

Nick-babzz

    GMC Member

  • New Member
  • 82 posts

Posted 21 August 2011 - 06:26 PM

I cant get the sound effects to work with my bullet object.
so how do i use 3D sound ?
  • 0

#2 Poeman

Poeman

    GMC Member

  • GMC Member
  • 382 posts

Posted 21 August 2011 - 06:30 PM

Some quirks to know
Mark your sound effect as 3D first off.
Next, only one instnace of each 3D sound can be playing so you'll want to find the nearest one. Now just review the manual a bit ;)
  • 0

#3 Nick-babzz

Nick-babzz

    GMC Member

  • New Member
  • 82 posts

Posted 21 August 2011 - 06:36 PM

Some quirks to know
Mark your sound effect as 3D first off.
Next, only one instnace of each 3D sound can be playing so you'll want to find the nearest one. Now just review the manual a bit ;)


i did but it didn't help very much.
  • 0

#4 Noele

Noele

    GMC Mentor

  • GMC Member
  • 2352 posts
  • Version:GM8.1

Posted 21 August 2011 - 06:38 PM

3D sound is always mono so it is pointless using a stereo track. You must give it a direction and velocity so it "appears" to travel from one point to another in relation to an object instance. 3D sounds are played via DirectX, thus should be wav or midi formats.

The manual is well documented however the 3D effect can be quite supple, particularly on low grade sound systems (such as the one on the system I am logged into) in which case you may have to listen very carefully for the difference.

If you get no sound at all, ensure:
A. It is set to 3D sound
B. The sound origin (an object usually) is within range of the target (i.e. player)
C. The volume is sufficiently high to be audible.
  • 0

#5 Nick-babzz

Nick-babzz

    GMC Member

  • New Member
  • 82 posts

Posted 21 August 2011 - 06:45 PM

3D sound is always mono so it is pointless using a stereo track. You must give it a direction and velocity so it "appears" to travel from one point to another in relation to an object instance. 3D sounds are played via DirectX, thus should be wav or midi formats.

The manual is well documented however the 3D effect can be quite supple, particularly on low grade sound systems (such as the one on the system I am logged into) in which case you may have to listen very carefully for the difference.

If you get no sound at all, ensure:
A. It is set to 3D sound
B. The sound origin (an object usually) is within range of the target (i.e. player)
C. The volume is sufficiently high to be audible.


A: Ok
B: Ok
C: Ok

my code look lik this

oBullet: create

sound_3d_set_sound_position(mAK47,x,y,0)
sound_3d_set_sound_distance(mAK47,32,512)
sound_3d_set_sound_velocity(mAK47,x,y,0)


And my speaker is logitech z523

and still no sound.

Edited by Nick-babzz, 21 August 2011 - 06:47 PM.

  • 0

#6 Devinit_gD

Devinit_gD

    GMC Member

  • New Member
  • 232 posts

Posted 21 August 2011 - 06:49 PM

uhhh is the volume up?
  • 0

#7 Nick-babzz

Nick-babzz

    GMC Member

  • New Member
  • 82 posts

Posted 21 August 2011 - 06:52 PM

uhhh is the volume up?


yes on max :wacko:
  • 0

#8 Noele

Noele

    GMC Mentor

  • GMC Member
  • 2352 posts
  • Version:GM8.1

Posted 21 August 2011 - 07:18 PM

These functions set and control the sound but where do you tell it to play the sound? Is it being looped, just played once? and where is the instruction to actually play it?

As Nick-babzz pointed out, only one instance can play a 3D sound because these functions alter the setting for the sound - you still need to play the sound.
  • 0

#9 Nick-babzz

Nick-babzz

    GMC Member

  • New Member
  • 82 posts

Posted 21 August 2011 - 07:45 PM

These functions set and control the sound but where do you tell it to play the sound? Is it being looped, just played once? and where is the instruction to actually play it?

As Nick-babzz pointed out, only one instance can play a 3D sound because these functions alter the setting for the sound - you still need to play the sound.


when the bullet its created. can you please show me how you will get the sound to play, with the 3D effects ?
  • 0

#10 Nick-babzz

Nick-babzz

    GMC Member

  • New Member
  • 82 posts

Posted 22 August 2011 - 01:14 PM

Bump
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users