mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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)
|
threading.Thread.__init__(self)
|
||||||
self.startupDelay = startupDelay
|
self.startupDelay = startupDelay
|
||||||
self.finish = False
|
self.finish = False
|
||||||
|
if isMac and qtminor > 12:
|
||||||
|
# trigger permission prompt
|
||||||
|
QAudioDeviceInfo.defaultInputDevice() # type: ignore
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
chunk = 1024
|
chunk = 1024
|
||||||
|
|
Loading…
Reference in a new issue