提交 e50952b1 编写于 作者: Z Zhang Rui

IJKSDLAudioUnitController: do not deactive audio when paused

上级 d7b4717c
......@@ -151,10 +151,12 @@
AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory), &sessionCategory);
AudioSessionSetActive(true);
/*-
Float32 preferredBufferDuration = _spec.samples * 1.0f / _spec.freq;
AudioSessionSetProperty(kAudioSessionProperty_PreferredHardwareIOBufferDuration,
sizeof (preferredBufferDuration),
&preferredBufferDuration);
*/
_auUnit = auUnit;
}
......@@ -181,7 +183,7 @@
return;
AudioOutputUnitStop(_auUnit);
AudioSessionSetActive(false);
// AudioSessionSetActive(false);
}
- (void)flush
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册