You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Add IOS support to listen if other BG sounds are playing.
[CL 2289196 by Terence Burns in Main branch]
This commit is contained in:
@@ -33,3 +33,8 @@ bool FIOSAudioDevice::SetAudioSessionActive(bool bActive)
|
||||
AVAudioSession* AudioSession = [AVAudioSession sharedInstance];
|
||||
return [AudioSession setActive:bActive error:nil] == YES;
|
||||
}
|
||||
|
||||
bool FIOSAudioDevice::IsExernalBackgroundSoundActive()
|
||||
{
|
||||
return [[AVAudioSession sharedInstance] isOtherAudioPlaying];
|
||||
}
|
||||
@@ -216,6 +216,9 @@ protected:
|
||||
void GetHardwareSampleRate(double& OutSampleRate);
|
||||
bool SetHardwareSampleRate(const double& InSampleRate);
|
||||
bool SetAudioSessionActive(bool bActive);
|
||||
|
||||
/** Check if any background music or sound is playing through the audio device */
|
||||
virtual bool IsExernalBackgroundSoundActive() override;
|
||||
|
||||
private:
|
||||
void HandleError(const TCHAR* InLogOutput, bool bTeardown = false);
|
||||
|
||||
Reference in New Issue
Block a user