mirror of
https://github.com/ankitects/anki.git
synced 2025-12-11 13:56:55 -05:00
ask users to report if PyAudio works better for them
This commit is contained in:
parent
ebeae9a5a0
commit
0bc4ea9c4d
1 changed files with 12 additions and 3 deletions
|
|
@ -252,9 +252,18 @@ class Preferences(QDialog):
|
||||||
restart_required = True
|
restart_required = True
|
||||||
|
|
||||||
self.mw.pm.set_interrupt_audio(self.form.interrupt_audio.isChecked())
|
self.mw.pm.set_interrupt_audio(self.form.interrupt_audio.isChecked())
|
||||||
self.mw.pm.set_recording_driver(
|
|
||||||
self._recording_drivers[self.form.recording_driver.currentIndex()]
|
new_audio_driver = self._recording_drivers[
|
||||||
)
|
self.form.recording_driver.currentIndex()
|
||||||
|
]
|
||||||
|
if self.mw.pm.recording_driver() != new_audio_driver:
|
||||||
|
self.mw.pm.set_recording_driver(new_audio_driver)
|
||||||
|
if new_audio_driver == RecordingDriver.PyAudio:
|
||||||
|
showInfo(
|
||||||
|
"""\
|
||||||
|
The PyAudio driver will likely be removed in a future update. If you find it works better \
|
||||||
|
for you than the default driver, please let us know on the Anki forums."""
|
||||||
|
)
|
||||||
|
|
||||||
if restart_required:
|
if restart_required:
|
||||||
showInfo(tr(TR.PREFERENCES_CHANGES_WILL_TAKE_EFFECT_WHEN_YOU))
|
showInfo(tr(TR.PREFERENCES_CHANGES_WILL_TAKE_EFFECT_WHEN_YOU))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue