Ignore:
Timestamp:
Jan 24, 2017, 12:41:54 PM (8 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to version 17.1.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/deviceinfo.h

    r181 r188  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2323#include <QVariant>
    2424#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
    2539
    2640#ifndef Q_OS_WIN
     
    5973        static DeviceList displayDevices();
    6074#else
     75        #if USE_PULSEAUDIO_DEVICES
     76        static DeviceList paDevices();
     77        #endif
     78        #if USE_ALSA_DEVICES
    6179        static DeviceList alsaDevices();
     80        #endif
     81        #if USE_XV_ADAPTORS
    6282        static DeviceList xvAdaptors();
     83        #endif
    6384#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);
    64107
    65108protected:
     
    74117        static DeviceList retrieveDevices(DeviceType type);
    75118#endif
     119
     120#if MPV_AUDIO_DEVICES
     121        static QString mpv_bin;
     122#endif
    76123};
    77124
Note: See TracChangeset for help on using the changeset viewer.