Search Issue Tracker
Duplicate
Votes
3
Found in
5.2.0b3
Issue ID
713739
Regression
No
External: [WebGL][Chrome] audio not played on left channel
-e: see title, works fine on firefox
-repro:
--play scene in editor
--notice the different sound in the left and right channel
--build attached project for webgl
--run in chrome
--NOTICE the left channel doesn't play any sounds
Comments (5)
-
shubhamswaraj2021
Aug 22, 2020 11:18
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
-
dradb
May 06, 2018 21:36
Audio is not playing at all in Chrome in webgl.
I added Unity's work around and now it's crashing on the first user interaction.
function _JS_Sound_Init() {
try {
window.AudioContext = window.AudioContext || window.webkitAudioContext;
WEBAudio.audioContext = new AudioContext;
var tryToResumeAudioContext = function() {
if (WEBAudio.audioContext.state === 'suspended')
WEBAudio.audioContext.resume();
else {
clearInterval(resumeInterval);
}
};
var resumeInterval = setInterval(tryToResumeAudioContext, 400);
WEBAudio.audioWebEnabled = 1;
} catch (e) {
alert("Web Audio API is not supported in this browser");
}
} -
Laur3nt1u
Jun 01, 2016 05:51
Still occurs in 5.3.5p1 and it's kinda a big problem if you want spatial blend I don't see how this is a duplicate
-
DanAmato
Dec 08, 2015 02:48
Still occurs in 5.2.3.
This was not a problem for my looping background audio, which I played with an audio source instance added to my scene. However, I had trouble with my one-shot sounds played via AudioSource.PlayClipAtPoint.
Replacing PlayClipAtPoint with transient AudioSource components and setting SpatialBlend on those to 0.0f as bryonclewis suggests helped in the majority of our cases. However, some of our quick one-shot sounds still seemed to be dropped completely.
I verified that the quick one-shot sounds were not dropped in Firefox.
I was using Chrome 47.0.2526.73 (64-bit) and Firefox 42.0
-
BryonCLewis
Sep 24, 2015 18:51
I've had this same issue, was able to resolve it by setting AudioSource.SpatialBlend to 0.0f, Hope this helps anyone looking for a short term fix.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Reflection Problem custom Cubemap loses its reference when HDR is enabled and the platform is switched
- [macOS] "Add Component" button is broken when the Editor is moved to a different MacOS workspace
- Player settings icons are not retrieved when using "PlayerSettings.GetIcons" method on PS4, PS5, Xbox
- Changes of MaterialPropertyBlock via Script reset when Sprite Renderer.Color is changed in animation
- Frame Debugger flickers when a Shader Graph Window is open
This is a duplicate of issue #786062