mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
MacOsX logging for mic. request
https://discordapp.com/channels/539048679160676382/567983892791951374/604797145928826880
This commit is contained in:
committed by
Mat Sutcliffe
parent
bbf341743e
commit
e7d39a2cd7
@@ -105,12 +105,14 @@ namespace BlackCore
|
||||
if (status == CMacOSMicrophoneAccess::Authorized)
|
||||
{
|
||||
m_voiceInputDevice = m_voice->createInputDevice();
|
||||
CLogMessage(this).info(u"MacOS specific input device init");
|
||||
}
|
||||
else if (status == CMacOSMicrophoneAccess::NotDetermined)
|
||||
{
|
||||
m_voiceInputDevice.reset(new CAudioInputDeviceDummy(this));
|
||||
connect(&m_micAccess, &CMacOSMicrophoneAccess::permissionRequestAnswered, this, &CContextAudio::delayedInitMicrophone);
|
||||
m_micAccess.requestAccess();
|
||||
CLogMessage(this).info(u"MacOS requested input device");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -734,6 +736,7 @@ namespace BlackCore
|
||||
{
|
||||
m_voiceInputDevice = m_voice->createInputDevice();
|
||||
m_voice->connectVoice(m_voiceInputDevice.get(), m_audioMixer.get(), IAudioMixer::InputMicrophone);
|
||||
CLogMessage(this).info(u"MacOS delayed input device init");
|
||||
}
|
||||
#endif
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user