Ignore:
Timestamp:
01/26/13 03:19:52 (11 years ago)
Author:
Nicholas Riley
Message:

AudioDevicemodule.c: Determine if the current output device is
AirPlay.

setup.py: Compile AudioDevice module.

StreamVision.py: Don't turn off the stereo if the current output
device is AirPlay.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r650 r653  
    88from Carbon.CarbonEvt import RegisterEventHotKey, GetApplicationEventTarget
    99from Carbon.Events import cmdKey, shiftKey, controlKey
     10from AudioDevice import default_output_device_is_airplay
    1011import httplib2
    1112import os
     
    112113def turnStereoOn():
    113114    global needsStereoPowerOn
    114     if not mayUseStereo():
     115    if not default_output_device_is_airplay() or not mayUseStereo():
    115116        if HAVE_XTENSION and XTensionApp().status('Stereo'):
    116117            XTensionApp().turnoff('Stereo')
     
    122123def turnStereoOff():
    123124    global needsStereoPowerOn
    124     if not mayUseStereo():
     125    if default_output_device_is_airplay() or not mayUseStereo():
    125126        return
    126127    if not needsStereoPowerOn and XTensionApp().status('Stereo'):
Note: See TracChangeset for help on using the changeset viewer.