John Topley
John Topley

Reputation: 115342

AudioServicesPlaySystemSound and the main thread

Is it considered good practice to put calls to AudioServicesPlaySystemSound in a queue to avoid blocking the main thread? Is this something that people do?

Upvotes: 6

Views: 1038

Answers (1)

tiguero
tiguero

Reputation: 11537

I was asking myself the same question and use to put this call in a background thread. It is really not needed. According to this article the sound is already played in a background thread and you don't know exactly when it will be played. I also verify this behavior in my own code.

Upvotes: 5

Related Questions