0

What is the best way to add sounds into a game. I've done some research, tried everything and all methods seem to have something wrong. For example:

  1. using SKAction.playFileNamed() has memory leaks, eventually will crash the app after extensive use.

  2. the workaround for that will be so use SKAudioNode with SKAction. Problem with this is that the app crashes when you plug-in headphones

  3. use AVPlayer. Problem with this is that it makes your app very very slow.

So these being said, how am I supposed to add sounds into my game and avoid all the problems above?

Thanks

dre_84w934
  • 678
  • 8
  • 27

0 Answers0