mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-21 16:55:29 -05:00
fix include path and warning
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <QMainWindow>
|
||||
#include <QDir>
|
||||
#include <QAction>
|
||||
#include <QtGui\qstandarditemmodel.h>
|
||||
#include <QtGui/qstandarditemmodel.h>
|
||||
|
||||
#include <condition_variable>
|
||||
#include <chrono>
|
||||
|
||||
@@ -25,13 +25,13 @@ struct AudioSwitch : virtual SceneSwitcherEntry {
|
||||
const float inputPeak[MAX_AUDIO_CHANNELS]);
|
||||
void resetVolmeter();
|
||||
|
||||
inline AudioSwitch(){};
|
||||
inline AudioSwitch(OBSWeakSource scene_, OBSWeakSource transition_,
|
||||
OBSWeakSource audioSource_, int volumeThreshold_,
|
||||
bool usePreviousScene_);
|
||||
AudioSwitch(){};
|
||||
AudioSwitch(OBSWeakSource scene_, OBSWeakSource transition_,
|
||||
OBSWeakSource audioSource_, int volumeThreshold_,
|
||||
bool usePreviousScene_);
|
||||
AudioSwitch(const AudioSwitch &other);
|
||||
AudioSwitch(AudioSwitch &&other);
|
||||
inline ~AudioSwitch();
|
||||
~AudioSwitch();
|
||||
AudioSwitch &operator=(const AudioSwitch &other);
|
||||
AudioSwitch &operator=(AudioSwitch &&other) noexcept;
|
||||
friend void swap(AudioSwitch &first, AudioSwitch &second);
|
||||
|
||||
@@ -232,9 +232,9 @@ bool AudioSwitch::valid()
|
||||
return SceneSwitcherEntry::valid() && WeakSourceValid(audioSource);
|
||||
}
|
||||
|
||||
inline AudioSwitch::AudioSwitch(OBSWeakSource scene_, OBSWeakSource transition_,
|
||||
OBSWeakSource audioSource_,
|
||||
int volumeThreshold_, bool usePreviousScene_)
|
||||
AudioSwitch::AudioSwitch(OBSWeakSource scene_, OBSWeakSource transition_,
|
||||
OBSWeakSource audioSource_, int volumeThreshold_,
|
||||
bool usePreviousScene_)
|
||||
: SceneSwitcherEntry(scene_, transition_, usePreviousScene_),
|
||||
audioSource(audioSource_),
|
||||
volumeThreshold(volumeThreshold_)
|
||||
@@ -277,7 +277,7 @@ AudioSwitch::AudioSwitch(AudioSwitch &&other)
|
||||
other.volmeter = nullptr;
|
||||
}
|
||||
|
||||
inline AudioSwitch::~AudioSwitch()
|
||||
AudioSwitch::~AudioSwitch()
|
||||
{
|
||||
obs_volmeter_remove_callback(volmeter, setVolumeLevel, this);
|
||||
obs_volmeter_destroy(volmeter);
|
||||
|
||||
Reference in New Issue
Block a user