equal
deleted
inserted
replaced
46 } |
46 } |
47 |
47 |
48 #pragma mark - |
48 #pragma mark - |
49 #pragma mark NSOperation |
49 #pragma mark NSOperation |
50 -(id) initFadeWithAudioPlayer:(AVAudioPlayer*)player toVolume:(float)volume overDuration:(NSTimeInterval)duration withDelay:(NSTimeInterval)timeDelay { |
50 -(id) initFadeWithAudioPlayer:(AVAudioPlayer*)player toVolume:(float)volume overDuration:(NSTimeInterval)duration withDelay:(NSTimeInterval)timeDelay { |
51 if (self = [super init]) { |
51 if ((self = [super init])) { |
52 self.audioPlayer = player; |
52 self.audioPlayer = player; |
53 [player prepareToPlay]; |
53 [player prepareToPlay]; |
54 _fadeDuration = duration; |
54 _fadeDuration = duration; |
55 _finishVolume = volume; |
55 _finishVolume = volume; |
56 _playBeforeFade = YES; |
56 _playBeforeFade = YES; |