• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by glenneroo · Aug 27, 2018 at 12:04 PM · audioaudiosourceaudioclipsurround

How to play 5.1 surround sound with 6 WAV files in scene

I am using Unity 2018.2.1f1. My project Audio is set to 5.1 Surround. I have 6 mono WAV files, one for each channel (L/R/C/LFE/Ls/Rs). I have placed each sound in the corner 10 units around my main camera, which never moves. I have attached all sounds to an AudioSource. These are all connected to an AudioMixerGroup under the main AudioMixer.

sound setup in scene - top view

When I play the audio in preview mode, regardless of which channels I play, the mono sound can be heard in ALL speakers (and barely in the rear). I have set Spatial Blend for all AudioSources to 0 (2D), Reverb Zone Mix to 0, Priority to 0. Min Distance is 1, Max Distance is 2 (for testing). Regardless of any settings, I hear every sound in my front 3 speakers, even when I only play Ls channel (Left Rear). When I play the sound back, the AudioMixer shows 6 channels but only ever shows green volume bars on the first 2 channels. Interestingly, when I move the sounds around in the scene, it doesn't matter how far away they are from the camera, the volume remains the same.

AudioMixer

I have tested with other stereo sounds (set Spatial Blend to 1) which I move around the camera and after distance of ~8 I can't hear them anymore, therefore it's something to do with using 6 mono sounds.

I have tested 2 different 5.1 sound cards (Behringer FCA610 and LogiLink USB 7.1) and both exhibit the same behaviour. My Teufel Concept 5.1 system says it's currently in "Pro Logic II" mode and it's wired with SP/DIF optical cable to the Teufel. I can play movies in 5.1 using e.g. VLC just fine. I can also get 3D sound to work if I just play a stereo file and move it around the scene, although the rear speakers are always extremely quiet.

I have read everything I can about audio and tried the forums but there is nothing which seems relevant to my case, but I am willing to try anything at this point.

Is there anything else I can investigate or did I perhaps miss some setting? Thanks for any advice!

51-sound-setup-in-scene.jpg (47.2 kB)
audiomixer-levels.jpg (30.0 kB)
Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

  • Sort: 
avatar image

Answer by luabzrakk · Mar 07, 2019 at 10:30 AM

Did you find any solution to your problem? Having a similar problem… Thanks, Ludwig

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image glenneroo · Mar 07, 2019 at 02:22 PM 0
Share

Yes and no. I eventually got the output on my 5.1 speaker system to play everything sufficiently well i.e. I can hear equal loudness in all 5 speakers (and bass), but the AudioMixer view still shows only output on the Left/Right channels. Unfortunately I don't know what I did, this was all last year! It doesn't seem to matter where the audio files are positioned in the scene, I have them currently set ~100 distance below the camera! I don't remember how I got it working but here is my AudioSource for center channel:

alt text

The only difference between other channels is the Stereo Pan setting: C/LFE is 0, L/Ls is -1, and R/Rs is 1.

I initially thought my speaker system was up-mixing to 5.1 automatically, but if I play a stereo sound, the original problem still occurs (i.e. can only hear output in left/right/center channels). I wish I could help more. I have switched the project to Quad sound now for a VR project -- and of course the AudioMixer still only shows playing on Left/Right channels... but at least my 5.1 sounds are coming from all speakers.

audio-source-c.png (44.5 kB)
avatar image

Answer by nzhangaudio · Feb 25, 2020 at 01:54 AM

you need a 5.1 audio file, not 6 mono files.

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

245 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

audio plays sometimes, then not others. 0 Answers

Audio Source stop playing even with "DontDestroyOnLoad" 0 Answers

Second AudioClip won't play 0 Answers

Can't get an AudioSource to play on awake 2 Answers

oneshot not working 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges