I am using AudioQueueStart for playing music and AudioQueuePause for pausing. Is there any way in AudioQueues to check whether the music is playing or not, I want to Pause music only if it is playing.
I am using AudioQueueStart for playing music and AudioQueuePause for pausing. Is there any
Share
Check the
kAudioQueueProperty_IsRunningproperty withAudioQueueGetProperty.Or seeing as you’re the one stopping and starting the queue, just remember the state you set and act accordingly.