Skip to content

Commit

Permalink
Merge pull request #68 from mysugr/feature/issue-65
Browse files Browse the repository at this point in the history
Workaround for issue 65: Audio does not resume after it has been suspend...
  • Loading branch information
kstenerud committed Jun 24, 2014
2 parents 2d8eba9 + 711f93a commit cd6387d
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

0 comments on commit cd6387d

Please sign in to comment.