Flash Audio Lag in Google Chrome

2019-07-03 22:31发布

问题:

I'm currently working on a flash game and, at least on my machine, the audio seems to lag by a fraction of a second in Chrome, but not in IE or FF. This isn't a huge deal, the game is still playable, but it's a little bit annoying. Is there anything I can do from a development standpoint to fix this issue or is it something the user would have to fix?

Edit: I've now tested it on two other machines and the same thing happened. The audio is delayed in chrome but not Firefox or IE.

Edit 2: I've also tried the same thing in a few popular games on Newgrounds to the same effect. Is this just something wrong with Chrome?

Edit 3: I tried lowering the bit rate of the audio from 44kHz to 22 and it didn't do anything to fix it. (It also sounded terrible, predictably)

Edit 4: To prove it's not a memory management problem I created a blank SWF that just plays an audio file on mouse click, it also has the lag issue. This is definitely not a Flash or AS3 isolated issue.

回答1:

I have/had the same problem with Chrome.

if you go to: chrome://plugins (->details) and disable PepperFlash, then it runs smooth. Not sure if Pepper is the default for Chrome, or if its the particular version of flash we installed.

C:\Users\ [USERNAME] \AppData\Local\Google\Chrome\Application\21.0.1180.75\PepperFlash\pepflashplayer.dll



回答2:

I had an intermittent audio and then the video started to lag. The solution was two fold:

  1. Re-install chrome.
  2. Get the latest Adobe Flash Player.

I had to do both things for it work properly. To get the plugins type the following in chrome address bar: chrome://plugins

After you install the latest player you need to disable the older one.

Hope this resolves your problem as it did for me.