Created
February 19, 2017 23:43
-
-
Save amirrajan/706dafe5ce196f966ad04bf9bb06e764 to your computer and use it in GitHub Desktop.
Play sound on a separate thread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def play_forward_sound_thread | |
NSThread.detachNewThreadSelector :play_forward_sound, toTarget: self, withObject: nil | |
end | |
def play_forward_sound context = nil | |
#play sound code here | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment