phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37.15k stars 7.1k forks source link

Safari mobile IPAD air when recording then playing back with recorder.js (getUserMedia). Sound is distorted. #4736

Closed geoff-mathspathway closed 5 years ago

geoff-mathspathway commented 5 years ago

Version

3.19.0

IPAD air 12.4.1

safari

If you use getUserMedia library to record sound then play it back ONLY when phaser is running it is distorted. I use a wrapper called recorder.js

Example Test Code

Additional Information

photonstorm commented 5 years ago

Thanks for opening this issue. As much as we'd love to help you, we need a fully working code sample to do so. Please provide one and then we'll re-open this issue and look at resolving it for you if possible.

I'd be surprised if Phaser itself was distorting the audio. Far more likely, is that the device doesn't have enough CPU to handle running Phaser and recording audio at the same time, and this is how it manifests itself. A runnable code sample could test this theory, however.

geoff-mathspathway commented 5 years ago

HI!

Thanks for getting back to me. You are right the problem seems to be a cpu issue when WEBGL and ipad are used. If you switch to canvas rendering it works ok. All other devices seem fine on WEBGL.