mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 19:39:20 +02:00
rebuilding the lost file :(. also undoing the postbuild script changes that were part on my last test
This commit is contained in:
parent
cc11bd9552
commit
4fb31ad479
3 changed files with 64 additions and 2 deletions
47
libraries/audio-client/src/HifiAudioDeviceInfo.h
Normal file
47
libraries/audio-client/src/HifiAudioDeviceInfo.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
#ifndef hifi_audiodeviceinfo_h
|
||||
#define hifi_audiodeviceinfo_h
|
||||
|
||||
#include <QObject>
|
||||
#include <QAudioDeviceInfo>
|
||||
#include <QAudio>
|
||||
#include <QString>
|
||||
|
||||
class HifiAudioDeviceInfo : public QObject {
|
||||
QObject
|
||||
|
||||
public:
|
||||
HifiAudioDeviceInfo() {}
|
||||
HifiAudioDeviceInfo(const HifiAudioDeviceInfo &deviceInfo){
|
||||
_audioDeviceInfo = deviceInfo.getDevice();
|
||||
_mode = deviceInfo.getMode();
|
||||
_deviceName = deviceInfo.deviceName();
|
||||
_isDefault = deviceInfo.isDefault();
|
||||
}
|
||||
|
||||
HifiAudioDeviceInfo(QAudioDeviceInfo deviceInfo, bool isDefault, QAudio::Mode mode) :
|
||||
_audioDeviceInfo(deviceInfo),
|
||||
_isDefault(isDefault),
|
||||
_mode(mode) {
|
||||
setDeviceName();
|
||||
}
|
||||
|
||||
void setMode(QAudio::Mode mode);
|
||||
void setIsDefault(bool isDefault = false);
|
||||
void setDeviceName(QString name);
|
||||
|
||||
QAudioDeviceInfo getDevice() const { return _audioDeviceInfo; }
|
||||
QString deviceName() const { return _deviceName; }
|
||||
bool isDefault() const { return isDefault; }
|
||||
QAudio::Mode getMode() const { return _mode; }
|
||||
|
||||
private:
|
||||
void setDeviceName();
|
||||
|
||||
private:
|
||||
QAudioDeviceInfo _audioDeviceInfo;
|
||||
QString _deviceName;
|
||||
bool _isDefault;
|
||||
QAudio::Mode _mode;
|
||||
};
|
||||
|
||||
#endif
|
16
libraries/audio-client/src/HifiAudioDeviceinfo.cpp
Normal file
16
libraries/audio-client/src/HifiAudioDeviceinfo.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "HifiAudioDeviceInfo.h"
|
||||
|
||||
void HifiAudioDeviceInfo::setMode(QAudio::Mode mode) {
|
||||
}
|
||||
|
||||
void HifiAudioDeviceInfo::setIsDefault(bool isDefault) {
|
||||
}
|
||||
|
||||
void HifiAudioDeviceInfo::setDeviceName(QString name) {
|
||||
|
||||
}
|
||||
|
||||
void HifiAudioDeviceInfo::setDeviceName() {
|
||||
|
||||
|
||||
}
|
|
@ -220,8 +220,7 @@ cpackCommand = [
|
|||
'cpack',
|
||||
'-G', 'ZIP',
|
||||
'-D', "CPACK_PACKAGE_FILE_NAME={}".format(archiveName),
|
||||
'-D', "CPACK_INCLUDE_TOPLEVEL_DIRECTORY=OFF",
|
||||
'-D', "CPACK_RPM_COMPRESSION_TYPE=lzma"
|
||||
'-D', "CPACK_INCLUDE_TOPLEVEL_DIRECTORY=OFF"
|
||||
]
|
||||
|
||||
print("Create ZIP version of installer archive")
|
||||
|
|
Loading…
Reference in a new issue