AlvaroFranco / AFSoundManager

iOS audio playing (both local and streaming) and recording made easy
MIT License
807 stars 131 forks source link

How to seek when using a queue? #49

Closed noveleven closed 6 years ago

noveleven commented 9 years ago

Hi, how to seek when using a queue, i found AFSoundPlayback class has a method named "playAtSecond:", but AFSoundQueue class doesn't have.

DevelopIdeas commented 8 years ago

I got around this gracefully by creating the following category (AFSoundQueue+Private.h): #import <AFSoundManager/AFSoundManager.h> @interface AFSoundQueue(Private) @property (nonatomic, strong) AFSoundPlayback *queuePlayer; @end With this you can do something like: [audioPlayer.queuePlayer playAtSecond:0];