Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Workaround for issue 65: Audio does not resume after it has been susp…
Browse files Browse the repository at this point in the history
…ended by iOS (iPhone 5s & iOS 7.1)

kstenerud#65
  • Loading branch information
besbes committed May 26, 2014
1 parent a68adc7 commit 711f93a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ObjectAL/ObjectAL/Session/OALSuspendHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ - (void) setInterrupted:(bool) value
{
if(nil != suspendStatusChangeTarget)
{
objc_msgSend(suspendStatusChangeTarget, suspendStatusChangeSelector, interruptLock);
void (*suspendStatusChange)(id, SEL, bool);
suspendStatusChange = (void (*)(id, SEL, bool))[suspendStatusChangeTarget methodForSelector:suspendStatusChangeSelector];
suspendStatusChange(suspendStatusChangeTarget, suspendStatusChangeSelector, interruptLock);
}
}
}
Expand Down

1 comment on commit 711f93a

@NachoSoto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. @karlstenaurd can you take a look?

Please sign in to comment.