Project

General

Profile

Bug #155

sound in chrome: echos

Added by Josip Almasi over 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
09/09/2022
Due date:
% Done:

0%

Estimated time:

Description

Sound in firefox works just fine, with or without headset.
But in chrome, there's significant echo when sound plays on speakers, effectively forcing users to use headset.
This is most likely due to how MediaStreams.attachAudioStream() sets up mixer:

      var ctx = voice._inputAudioNode.context;
      var gainNode = voice.getSoundGain();
      voice._streamingSource.connect(voice._soundPanner);
      voice._soundPanner.connect(gainNode);
      gainNode.connect(ctx.destination);      

That's a dirty hack for possible babylon and/or chrome bug that may or may not be there: https://forum.babylonjs.com/t/sound-created-with-a-remote-webrtc-stream-track-does-not-seem-to-work/7047

History

#1

Updated by Josip Almasi 4 months ago

  • Status changed from New to Resolved
  • Assignee set to Josip Almasi
#2

Updated by Josip Almasi 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF