Changeset 653 for trunk


Ignore:
Timestamp:
01/26/13 03:19:52 (12 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.

Location:
trunk/StreamVision
Files:
1 added
2 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'):
  • trunk/StreamVision/setup.py

    r634 r653  
    2222                           sources=['HotKeymodule.c'],
    2323                           extra_link_args=['-framework', 'Carbon']),
     24                 Extension('AudioDevice',
     25                           sources=['AudioDevicemodule.c'],
     26                           extra_link_args=['-framework', 'AudioToolbox']),
    2427                 Extension('HIDRemote',
    2528                           sources=['HIDRemotemodule.m'],
Note: See TracChangeset for help on using the changeset viewer.