Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

Audio is mono in Chrome #2608

Open csestili opened 4 years ago

csestili commented 4 years ago

Description Audio in scene that's supposed to be stereo ends up sounding mono when viewed in Chrome browser.

To Reproduce Steps to reproduce the behavior:

  1. Create a scene in Spoke that contains a video with an obvious stereo image. I used a Twitch live stream.
  2. Set video to "stereo" mode.
  3. Save and publish scene.
  4. Start a room inside this scene, using the Chrome browser.
  5. Hear that the audio is in mono, not stereo.

Expected behavior The audio should sound stereo. I tested in Firefox, and it does sound stereo in Firefox.

(Note: I believe that similar behavior happens when you set the video to "pannernode" mode. The audio level scales with distance correctly, but doesn't sound spatialized.)

Screenshots Not applicable

Hardware

Additional context None

┆Issue is synchronized with this Jira Task

InfiniteLee commented 4 years ago

Here is a video that can repro this easily: https://vimeo.com/7195762

Note that this does not have to be from a video that is in a spoke scene- loading this video in any room causes the same issue.

SeanBannister commented 4 years ago

Weird that this bug doesn't occur when your in a lobby (on desktop chrome) only after entering the world https://hubs.mozilla.com/scenes/cTd3HW3

I also tested on Android, in Chrome mobile it's bugged in lobby and world. But works fine in Firefox mobile.

kjjohnsen commented 4 years ago

Same issue.