Search Issue Tracker
Fixed
Fixed in 6000.4.0a5, 6000.5.0a1
Votes
0
Found in
6000.4.0a2
6000.5.0a1
Issue ID
UUM-123296
Regression
Yes
Regression in Web Audio Support "JS_Sound_GetAudioContextSampleRate is not defined", "Setting non-finite value for loopStart")
Steps to reproduce:
- Open project TestSuite-MobileAudio
- Switch to Platform Web
- Click on Build & Run
\\
Actual results: The test suite crashes with errors:
{noformat}
JS_Sound_GetAudioContextSampleRate is not defined
{noformat}
{noformat}
"Setting non-finite value for loopStart"
{noformat}
Expected results: The test suite works as expected. All audio tests supported by the Web work without throwing errors.
\\
Reproducible with versions: 6000.4.0a2, 6000.5.0a1
Not reproducible with versions: 6000.4.0a1, 6000.0, 6000.1, 6000.2, 6000.3,
\\
Tested on (OS): Windows 11
\\
Notes:
- The cause of the regression are refactorings in the PlatformDependent\WebGL\js\Audio.js file
Fixes:
{code:javascript}
soundClip.getFrequency = function () {
console.warn("getFrequency() is not supported for compressed sound.");
// Before: return JS_Sound_GetAudioContextSampleRate();
// Fix:
return _JS_Sound_GetAudioContextSampleRate();
}
{code}
{code:javascript}
/*
Gets sampling rate in Hz
- @returns {number}
*/
soundClip.getFrequency = function () {
if (!this.buffer) {
console.log ("Trying to get metadata of sound which is not loaded.");
// Before: return 0;
// Fix:
return WEBAudio.FAKEMOD_SAMPLERATE;
}
return this.buffer.sampleRate;
}
{code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment