Skip to content

Commit

Permalink
Changed totalDuration references to just duration
Browse files Browse the repository at this point in the history
  • Loading branch information
syedhali committed Jun 29, 2015
1 parent c8ee8a4 commit c7727f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EZAudio/EZAudioPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ -(float)currentTime {
leftMin:0
leftMax:self.audioFile.totalFrames
rightMin:0
rightMax:self.audioFile.totalDuration];
rightMax:self.audioFile.duration];
}

-(BOOL)endOfFile {
Expand All @@ -172,7 +172,7 @@ -(EZOutput*)output {

-(float)totalDuration {
NSAssert(_audioFile,@"No audio file to perform the seek on, check that EZAudioFile is not nil");
return _audioFile.totalDuration;
return _audioFile.duration;
}

-(SInt64)totalFrames {
Expand Down

0 comments on commit c7727f8

Please sign in to comment.