1 new commit in StationPlaylist: https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/a61c3f2e897b/ Changeset: a61c3f2e897b Branch: master User: josephsl Date: 2014-11-19 09:32:45+00:00 Summary: SPL Controller: mic on/off sound and added mic no fade command. When turning mic on and off, the on/off sounds from PAC Mate Omni will be played regardless of whether toggle announcement is set to beeps or not in the app module. Added mic no fade command (N) in SPL Controller. Affected #: 1 file diff --git a/addon/globalPlugins/SPLStudioUtils.py b/addon/globalPlugins/SPLStudioUtils.py index 154d717..a693069 100644 --- a/addon/globalPlugins/SPLStudioUtils.py +++ b/addon/globalPlugins/SPLStudioUtils.py @@ -4,11 +4,13 @@ # Adds a few utility features such as switching focus to the SPL Studio window and some global scripts. from functools import wraps +import os import globalPluginHandler import api import ui import winUser import tones +import nvwave import addonHandler addonHandler.initTranslation() @@ -42,6 +44,10 @@ SPLLibraryScanCount = 32 SPL_TrackPlaybackStatus = 104 SPLCurTrackPlaybackTime = 105 +# On/off toggle wave files. +onFile = os.path.join(os.path.dirname(__file__), "..", "appModules", "SPL_on.wav") +offFile = os.path.join(os.path.dirname(__file__), "..", "appModules", "SPL_off.wav") + # Try to see if SPL foreground object can be fetched. This is used for switching to SPL Studio window from anywhere and to switch to Studio window from SAM encoder window. def fetchSPLForegroundWindow(): @@ -136,10 +142,16 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin): def script_micOn(self, gesture): winUser.sendMessage(SPLWin,SPLMSG,1,SPLMic) + nvwave.playWaveFile(onFile) + self.finish() + + def script_micNoFade(self, gesture): + winUser.sendMessage(SPLWin,SPLMSG,2,SPLMic) self.finish() def script_micOff(self, gesture): winUser.sendMessage(SPLWin,SPLMSG,0,SPLMic) + nvwave.playWaveFile(offFile) self.finish() def script_lineInOn(self, gesture): @@ -189,6 +201,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin): "kb:shift+a":"automateOff", "kb:m":"micOn", "kb:shift+m":"micOff", + "kb:n":"micNoFade", "kb:l":"lineInOn", "kb:shift+l":"lineInOff", "kb:shift+r":"libraryScanProgress", Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.