HowlerJS and Web Audio distortion across browsers, in GainNode? AudioBufferSourceNode?Get the size of the screen, current web page and browser windowUsing HTML5/Canvas/JavaScript to take in-browser screenshotsPlaying audio with Javascript?Distorted sounds with Dartium and Web Audio API in DartWeb Audio API and mobile browsersDistorted audio in iOS 7.1 with WebAudio APIHTML5 Web Audio - Slowed down audio playback cuts off earlyWeb Audio API, MediaElementAudioSourceNode, SafariCommon sources of OpenAL distortion?Why state can be invalid in Web Audio in Safari after resume?

Why would a military not separate its forces into different branches?

What is a common way to tell if an academic is "above average," or outstanding in their field? Is their h-index (Hirsh index) one of them?

How to deal with employer who keeps me at work after working hours

Has the Hulk always been able to talk?

Is an HNN extension of a virtually torsion-free group virtually torsion-free?

Endgame puzzle: How to avoid stalemate and win?

How can internet speed be 10 times slower without a router than when using a router?

Any examples of liquids volatile at room temp but non-flammable?

Is “snitty” a popular American English term? What is its origin?

Should I simplify my writing in a foreign country?

Are the Night's Watch still required?

Where to draw the line between quantum mechanics theory and its interpretation(s)?

Would a small hole in a Faraday cage drastically reduce its effectiveness at blocking interference?

Where are the "shires" in the UK?

Seeing 2 very different execution plans for an UPDATE between test & prod environments

Mug and wireframe entirely disappeared

Voltage Balun 1:1

Start job from another SQL server instance

Dangerous workplace travelling

Indentation Tex

How to ask systemd to not start a system service on boot?

Can my 2 children, aged 10 and 12, who are US citizens, travel to the USA on expired American passports?

Python 3 - simple temperature program

As a GM, is it bad form to ask for a moment to think when improvising?



HowlerJS and Web Audio distortion across browsers, in GainNode? AudioBufferSourceNode?


Get the size of the screen, current web page and browser windowUsing HTML5/Canvas/JavaScript to take in-browser screenshotsPlaying audio with Javascript?Distorted sounds with Dartium and Web Audio API in DartWeb Audio API and mobile browsersDistorted audio in iOS 7.1 with WebAudio APIHTML5 Web Audio - Slowed down audio playback cuts off earlyWeb Audio API, MediaElementAudioSourceNode, SafariCommon sources of OpenAL distortion?Why state can be invalid in Web Audio in Safari after resume?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I'm trying to understand how a Web Audio GainNode or AudioBufferSourceNode could introduce persistent audio distortion, as if an audio file or loaded data buffer is corrupt



Working on an HTML5 game, using only PIXI and Howler, and I've run into audio distortion in Safari, and Microsoft Edge.



Today and yesterday: reading HowlerJS code, reading the W3 spec for Web Audio API, and running dozens of controlled tests.



Game has a BGM loop, and many sound half-to-several-seconds sound effects that play on game events, sometimes very rapidly in succession. Also, unrelated, the BGM is regularly paused and resumed.



Current statistics:



  1. Run game naturally. Across dozens of tests, audio regularly begins distortion approximately 7 minutes into the gameplay, plus-minus 1 minute, in Safari. Previously 3 minutes plus-minus 30 seconds in Edge over many tests, but have done more testing and (apparently unrelated to audio) optimization and the tests in Edge are also now running about 7 minutes before distortion.

  2. Test for source data corruption:

    • While current BGM is playing through a GainNode with distortion, a new GainNode is created by .play() on the Howl object using same cache[key] data source, playing simultaneously as the distorted sound.

    • Later, using the IDs to pause/resume each sound, the new created GainNode from same source data is playing perfectly. The issue could also be in the AudioBufferSourceNode, but I cannot determine.


  3. The GainNode called Howler.masterGain remains unchanged.

  4. All audio files are 44100, being tested on desktop.

  5. In Safari, the looping distorted audio will become clear if I drag another window 50-90% overtop the Safari window, which threw me off for a while.

  6. The issue is triggered regularly in Safari and Edge but have never seen it in Chrome.

So I have to wonder if there is an internal buffer that the buffer data is copied to, and that is being corrupted, perhaps fragmented, but I've run out of ideas.



Is this a known issue dealing with Web Audio, and is there any work around?










share|improve this question




























    0















    I'm trying to understand how a Web Audio GainNode or AudioBufferSourceNode could introduce persistent audio distortion, as if an audio file or loaded data buffer is corrupt



    Working on an HTML5 game, using only PIXI and Howler, and I've run into audio distortion in Safari, and Microsoft Edge.



    Today and yesterday: reading HowlerJS code, reading the W3 spec for Web Audio API, and running dozens of controlled tests.



    Game has a BGM loop, and many sound half-to-several-seconds sound effects that play on game events, sometimes very rapidly in succession. Also, unrelated, the BGM is regularly paused and resumed.



    Current statistics:



    1. Run game naturally. Across dozens of tests, audio regularly begins distortion approximately 7 minutes into the gameplay, plus-minus 1 minute, in Safari. Previously 3 minutes plus-minus 30 seconds in Edge over many tests, but have done more testing and (apparently unrelated to audio) optimization and the tests in Edge are also now running about 7 minutes before distortion.

    2. Test for source data corruption:

      • While current BGM is playing through a GainNode with distortion, a new GainNode is created by .play() on the Howl object using same cache[key] data source, playing simultaneously as the distorted sound.

      • Later, using the IDs to pause/resume each sound, the new created GainNode from same source data is playing perfectly. The issue could also be in the AudioBufferSourceNode, but I cannot determine.


    3. The GainNode called Howler.masterGain remains unchanged.

    4. All audio files are 44100, being tested on desktop.

    5. In Safari, the looping distorted audio will become clear if I drag another window 50-90% overtop the Safari window, which threw me off for a while.

    6. The issue is triggered regularly in Safari and Edge but have never seen it in Chrome.

    So I have to wonder if there is an internal buffer that the buffer data is copied to, and that is being corrupted, perhaps fragmented, but I've run out of ideas.



    Is this a known issue dealing with Web Audio, and is there any work around?










    share|improve this question
























      0












      0








      0








      I'm trying to understand how a Web Audio GainNode or AudioBufferSourceNode could introduce persistent audio distortion, as if an audio file or loaded data buffer is corrupt



      Working on an HTML5 game, using only PIXI and Howler, and I've run into audio distortion in Safari, and Microsoft Edge.



      Today and yesterday: reading HowlerJS code, reading the W3 spec for Web Audio API, and running dozens of controlled tests.



      Game has a BGM loop, and many sound half-to-several-seconds sound effects that play on game events, sometimes very rapidly in succession. Also, unrelated, the BGM is regularly paused and resumed.



      Current statistics:



      1. Run game naturally. Across dozens of tests, audio regularly begins distortion approximately 7 minutes into the gameplay, plus-minus 1 minute, in Safari. Previously 3 minutes plus-minus 30 seconds in Edge over many tests, but have done more testing and (apparently unrelated to audio) optimization and the tests in Edge are also now running about 7 minutes before distortion.

      2. Test for source data corruption:

        • While current BGM is playing through a GainNode with distortion, a new GainNode is created by .play() on the Howl object using same cache[key] data source, playing simultaneously as the distorted sound.

        • Later, using the IDs to pause/resume each sound, the new created GainNode from same source data is playing perfectly. The issue could also be in the AudioBufferSourceNode, but I cannot determine.


      3. The GainNode called Howler.masterGain remains unchanged.

      4. All audio files are 44100, being tested on desktop.

      5. In Safari, the looping distorted audio will become clear if I drag another window 50-90% overtop the Safari window, which threw me off for a while.

      6. The issue is triggered regularly in Safari and Edge but have never seen it in Chrome.

      So I have to wonder if there is an internal buffer that the buffer data is copied to, and that is being corrupted, perhaps fragmented, but I've run out of ideas.



      Is this a known issue dealing with Web Audio, and is there any work around?










      share|improve this question














      I'm trying to understand how a Web Audio GainNode or AudioBufferSourceNode could introduce persistent audio distortion, as if an audio file or loaded data buffer is corrupt



      Working on an HTML5 game, using only PIXI and Howler, and I've run into audio distortion in Safari, and Microsoft Edge.



      Today and yesterday: reading HowlerJS code, reading the W3 spec for Web Audio API, and running dozens of controlled tests.



      Game has a BGM loop, and many sound half-to-several-seconds sound effects that play on game events, sometimes very rapidly in succession. Also, unrelated, the BGM is regularly paused and resumed.



      Current statistics:



      1. Run game naturally. Across dozens of tests, audio regularly begins distortion approximately 7 minutes into the gameplay, plus-minus 1 minute, in Safari. Previously 3 minutes plus-minus 30 seconds in Edge over many tests, but have done more testing and (apparently unrelated to audio) optimization and the tests in Edge are also now running about 7 minutes before distortion.

      2. Test for source data corruption:

        • While current BGM is playing through a GainNode with distortion, a new GainNode is created by .play() on the Howl object using same cache[key] data source, playing simultaneously as the distorted sound.

        • Later, using the IDs to pause/resume each sound, the new created GainNode from same source data is playing perfectly. The issue could also be in the AudioBufferSourceNode, but I cannot determine.


      3. The GainNode called Howler.masterGain remains unchanged.

      4. All audio files are 44100, being tested on desktop.

      5. In Safari, the looping distorted audio will become clear if I drag another window 50-90% overtop the Safari window, which threw me off for a while.

      6. The issue is triggered regularly in Safari and Edge but have never seen it in Chrome.

      So I have to wonder if there is an internal buffer that the buffer data is copied to, and that is being corrupted, perhaps fragmented, but I've run out of ideas.



      Is this a known issue dealing with Web Audio, and is there any work around?







      javascript html5 audio web-audio howler.js






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 1:09









      Tom PaceTom Pace

      1,92412128




      1,92412128






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309660%2fhowlerjs-and-web-audio-distortion-across-browsers-in-gainnode-audiobuffersourc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309660%2fhowlerjs-and-web-audio-distortion-across-browsers-in-gainnode-audiobuffersourc%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

          밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

          1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴