提交 613185f8 编写于 作者: B bbcallen

ios: handle audio interruption

上级 1013e119
......@@ -157,8 +157,8 @@
return;
_isPaused = NO;
AudioOutputUnitStart(_auUnit);
AudioSessionSetActive(true);
AudioOutputUnitStart(_auUnit);
}
- (void)pause
......@@ -167,6 +167,10 @@
return;
_isPaused = YES;
AudioSessionSetActive(false);
OSStatus status = AudioOutputUnitStop(_auUnit);
if (status != noErr)
ALOGE("AudioUnit: failed to stop AudioUnit (%d)", (int)status);
}
- (void)flush
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册