- Home /
Audio listener to mono then to left or right speaker?
I have a vertical split screen game using two audio sources, I want to be able to convert the audio from each to mono and then output the Left players audio to the left speaker, and right player to right speaker.
Is this possible? (well any things possible, but in a reasonably simple way).
Answer by Tomer-Barkan · Nov 17, 2013 at 08:10 AM
Possible, not necessarily simple though... You need to use the AudioSource
's pan and spread to control which speakers play the audio source, and the way I understand it, it has to do with the relative world locations of the AudioSource
and AudioListener
.
I suggest to start by reading this Unity knowledge article: http://docs.unity3d.com/Documentation/Components/class-AudioSource.html
And then this forum post: http://forum.unity3d.com/threads/72850-3D-Sound-Spread-and-Pan
Other than that google is your friend, and the keywords you're interested in are "3D sound" and "pan" and "spread", and "Unity3d" of course.
Answer by LunaArgenteus · Oct 22, 2014 at 06:29 AM
If you're still looking for a solution, I've just released an asset for split screen games which can handle audio in multiple ways - one of which being the one you're looking for. Even when the sound is 2D, it can still handle 3D-only settings like the doppler effect! You can check it out here:
hi there..can u give me some advice in this question?http://answers.unity3d.com/questions/1210126/4-speakers-how-to-make-each-one-play-different-sou.html thanks a lot...
Your answer
Follow this Question
Related Questions
How To Turn Off Sound For Certain Objects? 1 Answer
Sounds appear on wrong side. 0 Answers
Is There A way For unity to Determine If Audio Was Recorded Backwards 1 Answer
How can i set audio mixer groups volume to be used with ui slider when 0 is lower and 80 louder ? 1 Answer
Audio: -3db automatic attenuation on any audio playing? 0 Answers