Stereo Sounds In 3D Space
I want to know, if Unity already have a "Stereo Sound System" or i need to program one
e.g: i'm walking and i hear a monster beside me, so my stereo headphone will play the sound beside me. Unity already have a Stereo Sound system?
beacuse i see a lot of games made with Unity, with this Technology, but i don't know if they programmed or Unity already has, please guys help me
- Emanuel Messias, R.d.S - São Paulo, Brasil
Answer by Alanisaac · Oct 24, 2018 at 01:02 PM
In Unity, there are two concepts you'll want to take a look at for audio: AudioSource and AudioListener.
The basic idea is that you attach an AudioSource to your Monster GameObject, and an AudioListener to either the Camera or the Player GameObject, if you have one. Then, make sure you set the spatial blend setting of the AudioSource to 1, or to the "3D" side of the slider. That setting means the sound will be affected by the relative position and of the AudioSource to the AudioListener.
Your answer
Follow this Question
Related Questions
Using coroutine and texture array to randomly associate textures? 1 Answer
How to implement the ability to move and place objects in HoloLens Application? 0 Answers
How to make a 3D bowling scoreboard for each 10 frames? 1 Answer
How to prevent sound effects playing every frame? 0 Answers
Unity Gameobjects aren't showing up in the hierarchy but can see them in gameview 0 Answers