mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
trigger recording permission on newer macOS SDKs
This commit is contained in:
parent
1e6a37e0e6
commit
3337c96fdb
1 changed files with 3 additions and 0 deletions
|
@ -462,6 +462,9 @@ class PyAudioThreadedRecorder(threading.Thread):
|
|||
threading.Thread.__init__(self)
|
||||
self.startupDelay = startupDelay
|
||||
self.finish = False
|
||||
if isMac and qtminor > 12:
|
||||
# trigger permission prompt
|
||||
QAudioDeviceInfo.defaultInputDevice() # type: ignore
|
||||
|
||||
def run(self) -> None:
|
||||
chunk = 1024
|
||||
|
|
Loading…
Reference in a new issue