Category: macOS
-
How to add music and sounds to an iOS or macOS game with AVFoundation
While working on adding music and sounds to my latest project I found a problem: If you’re running some background music and then you trigger a sound ( for example by picking up some item ) the music will stop, as you’re overriding the sound with the new object. In order to fix this we […]