sound design for spritekit with swift

By : hamobi
Source: Stackoverflow.com
Question!

I'm trying to figure out how to add some sound design elements to my game. For example.. I want an engine sound to change pitch or grow louder as my sprite moves faster. Obviously this is outside the scope of SKAction. I've tried AVAudioPlayer.. this works but it seems to be more suited towards playing music. Even running a short loop using AVAudioPlayer produces popping sounds between each loop.

How can I control things like pitch, volume, playback speed programmatically?

This seems useful.

http://kstenerud.github.io/ObjectAL-for-iPhone/index.html

but is there a swift version.. or can I bridge this over to swift somehow.

By : hamobi


Answers
ObjectAL can be added as a Pod into a Swift project, i am using it right now in my own Swift projects.



This video can help you solving your question :)
By: admin