# Sometimes sound & music still has some glitches-noises (Opera, Emscripten)

**URL:** <https://qa.fmod.com/t/sometimes-sound-music-still-has-some-glitches-noises-opera-emscripten/21285>\
**Category:** FMOD Engine\
**Created:** [February 26, 2024, 9:41am UTC](https://qa.fmod.com/t/sometimes-sound-music-still-has-some-glitches-noises-opera-emscripten/21285 "2024-02-26T09:41:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonardo98](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@leonardo98](https://qa.fmod.com/u/leonardo98)\
**Post date:** [February 26, 2024, 9:41am UTC](https://qa.fmod.com/t/sometimes-sound-music-still-has-some-glitches-noises-opera-emscripten/21285/1 "2024-02-26T09:41:06Z")

</div>

Started here

> [@Spontaneous Issues with AudioWorklet In REACT/JS environment](https://qa.fmod.com/t/spontaneous-issues-with-audioworklet-in-react-js-environment/21189/17):
>
> Thank you for your help! We fixed generated js and it’s works (no exceptions with length any more). But sometimes sound & music still has some glitches-noises(probably we need recheck init’s flags). Opera One(107.0.5045.15) Windows 10 64-bit Chromium:121.0.6167.140

I have reached reply limit there, so moved it to this new topic

Answer for [Spontaneous Issues with AudioWorklet In REACT/JS environment - #21 by jeff\_fmod](https://qa.fmod.com/t/spontaneous-issues-with-audioworklet-in-react-js-environment/21189/21)  
Yes, all sounds are affected.  
Have checked setStreamBufferSize(32768, FMOD\_TIMEUNIT\_RAWBYTES); - does not any effect.

I have compared original track and recorded from web - every 43ms there are some invalid values  
43ms - length of sample from one buffer  
`setDSPBufferSize(2048, 2)`

 ![sounds_glitches_every_43ms](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/85682749751c45c3c96b1bd923ea62a382d53ea9.png)

---

<div class="post-metadata">

**Author:** ![leonardo98](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@leonardo98](https://qa.fmod.com/u/leonardo98)\
**Post date:** [February 26, 2024, 2:16pm UTC](https://qa.fmod.com/t/sometimes-sound-music-still-has-some-glitches-noises-opera-emscripten/21285/2 "2024-02-26T14:16:47Z")

</div>

I researched image and found those parts(10ms length) are very similar

 ![sounds_glitches_every_43ms_copy](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/79c55fd061c08bc9d4efab6d6e3e497d254718c8.png)

---

<div class="post-metadata">

**Author:** ![leonardo98](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@leonardo98](https://qa.fmod.com/u/leonardo98)\
**Post date:** [February 29, 2024, 8:00am UTC](https://qa.fmod.com/t/sometimes-sound-music-still-has-some-glitches-noises-opera-emscripten/21285/3 "2024-02-29T08:00:59Z")

</div>

found fix by experimental way  
`system->setOutput(FMOD_OUTPUTTYPE_WEBAUDIO);`
