Ignore:
Timestamp:
01/26/13 04:24:01 (11 years ago)
Author:
Nicholas Riley
Message:

AudioDevicemodule.c: Register callback for when default output device
changes.

StreamVision.py: Turn on/off the stereo when the current output device
changes to/from AirPlay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r653 r654  
    88from Carbon.CarbonEvt import RegisterEventHotKey, GetApplicationEventTarget
    99from Carbon.Events import cmdKey, shiftKey, controlKey
    10 from AudioDevice import default_output_device_is_airplay
     10from AudioDevice import default_output_device_is_airplay, set_default_output_device_changed_callback
    1111import httplib2
    1212import os
     
    366366            print "failed to connect to remote: ", e
    367367
     368        set_default_output_device_changed_callback(turnStereoOn)
     369        turnStereoOn()
     370
    368371    def sendEvent_(self, theEvent):
    369372        eventType = theEvent.type()
Note: See TracChangeset for help on using the changeset viewer.