Skip to content

Conversation

@orsi
Copy link
Contributor

@orsi orsi commented Oct 13, 2020

Major optimization of audio files due to two factors:

  1. Total audio assets size reduced from 20.3MB to 5MB
  2. Removed preloaded audio, as this was initially downloading 10.8MB of audio on first load if not cached in browser. This was most likely the reason why your bandwidth was out of control (very, very sorry for this)

Fixed the issue with Safari breaking on landmark audio error. In fact, this was due to an issue in Safari not having a promise API for a Web Audio function that all other browsers have, and was causing Safari to not play audio when loaded, but only on subsequent plays. I've now made it work properly on first load for all browsers.

orsi added 28 commits June 3, 2020 16:24
…-- reveals another safari bug where decodeAudioData doesn't return a promise to start playing music immediately
…to 22k from 44k, and lowering bit depth to 16bit from 24bit
@Continuities Continuities merged commit f8b3c03 into doublespeakgames:main Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants