Reputation: 115342
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
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