Skip to content

Commit

Permalink
Playing if valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
thegautam committed Oct 22, 2011
1 parent 97935a1 commit 06fed7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Three20UI/Sources/TTPhotoViewController.m
Expand Up @@ -1109,9 +1109,12 @@ - (int)progressCount {

///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)playSound:(NSInteger)currentIndex {
player =[_photoSource newPlayer:currentIndex];
player = [_photoSource newPlayer:currentIndex];
if (player != nil)
{
[player prepareToPlay];
[player play];
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)stopPlayingSound {
Expand Down

0 comments on commit 06fed7a

Please sign in to comment.