Changeset 188 for smplayer/trunk/src/deviceinfo.h
- Timestamp:
- Jan 24, 2017, 12:41:54 PM (8 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 186
- Property svn:mergeinfo changed
-
smplayer/trunk/src/deviceinfo.h
r181 r188 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 6Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 23 23 #include <QVariant> 24 24 #include <QList> 25 26 #ifdef Q_OS_WIN 27 #define USE_DSOUND_DEVICES 1 28 #define USE_MPV_WASAPI_DEVICES 1 29 #else 30 #define USE_ALSA_DEVICES 0 31 #define USE_MPV_ALSA_DEVICES 0 32 #define USE_PULSEAUDIO_DEVICES 1 33 #define USE_XV_ADAPTORS 1 34 #endif 35 36 #if defined(USE_MPV_ALSA_DEVICES) || defined(USE_MPV_WASAPI_DEVICES) 37 #define MPV_AUDIO_DEVICES 1 38 #endif 25 39 26 40 #ifndef Q_OS_WIN … … 59 73 static DeviceList displayDevices(); 60 74 #else 75 #if USE_PULSEAUDIO_DEVICES 76 static DeviceList paDevices(); 77 #endif 78 #if USE_ALSA_DEVICES 61 79 static DeviceList alsaDevices(); 80 #endif 81 #if USE_XV_ADAPTORS 62 82 static DeviceList xvAdaptors(); 83 #endif 63 84 #endif 85 86 #if MPV_AUDIO_DEVICES 87 static void setMpvBin(const QString & bin) { mpv_bin = bin; }; 88 89 #if USE_MPV_ALSA_DEVICES 90 static DeviceList mpvAlsaDevices(); 91 #endif 92 93 #if USE_MPV_WASAPI_DEVICES 94 static DeviceList mpvWasapiDevices(); 95 #endif 96 97 static DeviceList mpvAudioDevices(const QString & mpv_bin, const QString & filter); 98 static DeviceList mpvAudioDevices(const QString & filter); 99 #endif 100 101 static QString printableName(const QString & driver_name, const DeviceData & device); 102 static QString internalName(const QString & driver_name, const DeviceData & device); 103 104 static QString printableName(const QString & driver_name, const QString & id, const QString & desc); 105 static QString internalName(const QString & driver_name, const QString & id, const QString & desc); 106 static QStringList extractDevice(const QString & internal_name); 64 107 65 108 protected: … … 74 117 static DeviceList retrieveDevices(DeviceType type); 75 118 #endif 119 120 #if MPV_AUDIO_DEVICES 121 static QString mpv_bin; 122 #endif 76 123 }; 77 124
Note:
See TracChangeset
for help on using the changeset viewer.