Formatting

This commit is contained in:
Jonas Kvinge
2021-07-11 09:49:38 +02:00
parent a6742d401c
commit e48b7d83a3
161 changed files with 370 additions and 369 deletions

View File

@@ -34,7 +34,7 @@
#include "devicefinder.h"
#include "alsadevicefinder.h"
AlsaDeviceFinder::AlsaDeviceFinder() : DeviceFinder("alsa", {"alsa","alsasink"}) {}
AlsaDeviceFinder::AlsaDeviceFinder() : DeviceFinder("alsa", { "alsa","alsasink" }) {}
QList<DeviceFinder::Device> AlsaDeviceFinder::ListDevices() {

View File

@@ -37,4 +37,4 @@ class AlsaDeviceFinder : public DeviceFinder {
Q_DISABLE_COPY(AlsaDeviceFinder)
};
#endif // ALSADEVICEFINDER_H
#endif // ALSADEVICEFINDER_H

View File

@@ -33,7 +33,7 @@
#include "devicefinder.h"
#include "alsapcmdevicefinder.h"
AlsaPCMDeviceFinder::AlsaPCMDeviceFinder() : DeviceFinder("alsa", {"alsa","alsasink"}) {}
AlsaPCMDeviceFinder::AlsaPCMDeviceFinder() : DeviceFinder("alsa", { "alsa","alsasink" }) {}
QList<DeviceFinder::Device> AlsaPCMDeviceFinder::ListDevices() {

View File

@@ -37,4 +37,4 @@ class AlsaPCMDeviceFinder : public DeviceFinder {
Q_DISABLE_COPY(AlsaPCMDeviceFinder)
};
#endif // ALSAPCMDEVICEFINDER_H
#endif // ALSAPCMDEVICEFINDER_H

View File

@@ -23,7 +23,7 @@
#include "devicefinder.h"
DeviceFinder::DeviceFinder(const QString &name, const QStringList &outputs): name_(name), outputs_(outputs) {}
DeviceFinder::DeviceFinder(const QString &name, const QStringList &outputs) : name_(name), outputs_(outputs) {}
QString DeviceFinder::GuessIconName(const QString &description) {

View File

@@ -65,4 +65,4 @@ class DeviceFinder {
Q_DISABLE_COPY(DeviceFinder)
};
#endif // DEVICEFINDER_H
#endif // DEVICEFINDER_H

View File

@@ -20,7 +20,7 @@
*/
#ifdef INTERFACE
#undef INTERFACE
# undef INTERFACE
#endif
#include "config.h"

View File

@@ -46,4 +46,4 @@ class DirectSoundDeviceFinder : public DeviceFinder {
LPVOID state_voidptr) __attribute__((stdcall));
};
#endif // DIRECTSOUNDDEVICEFINDER_H
#endif // DIRECTSOUNDDEVICEFINDER_H

View File

@@ -35,7 +35,7 @@ enum TrackChangeType {
Q_DECLARE_FLAGS(TrackChangeFlags, TrackChangeType)
}
} // namespace Engine
typedef Engine::Base EngineBase;

View File

@@ -241,7 +241,7 @@ struct SimpleMetaBundle {
QString lyrics;
};
} // namespace
} // namespace Engine
Q_DECLARE_METATYPE(EngineBase::OutputDetails)

View File

@@ -38,7 +38,8 @@ Engine::EngineType EngineTypeFromName(const QString &enginename);
QString EngineName(const Engine::EngineType enginetype);
QString EngineDescription(const Engine::EngineType enginetype);
}
} // namespace Engine
Q_DECLARE_METATYPE(Engine::EngineType)
#endif // ENGINETYPE_H

View File

@@ -42,4 +42,4 @@ class GstBufferConsumer {
Q_DISABLE_COPY(GstBufferConsumer)
};
#endif // GSTBUFFERCONSUMER_H
#endif // GSTBUFFERCONSUMER_H

View File

@@ -712,7 +712,7 @@ GstEngine::PluginDetailsList GstEngine::GetPluginList(const QString &classname)
GList *p = features;
while (p) {
GstElementFactory *factory = GST_ELEMENT_FACTORY(p->data);
if (QString(gst_element_factory_get_klass(factory)).contains(classname)) {;
if (QString(gst_element_factory_get_klass(factory)).contains(classname)) {
PluginDetails details;
details.name = QString::fromUtf8(gst_plugin_feature_get_name(p->data));
details.description = QString::fromUtf8(gst_element_factory_get_metadata(factory, GST_ELEMENT_METADATA_DESCRIPTION));

View File

@@ -1174,7 +1174,7 @@ void GstEnginePipeline::SetEqualizerParams(const int preamp, const QList<int> &b
void GstEnginePipeline::UpdateEqualizer() {
if (!equalizer_ || !equalizer_preamp_) return;
if (!equalizer_ || !equalizer_preamp_) return;
// Update band gains
for (int i = 0; i < kEqBandCount; ++i) {

View File

@@ -62,7 +62,7 @@ std::unique_ptr<T> GetProperty(const AudioDeviceID &device_id, const AudioObject
} // namespace
MacOsDeviceFinder::MacOsDeviceFinder() : DeviceFinder("osxaudio", { "osxaudio", "osx", "osxaudiosink"} ) {}
MacOsDeviceFinder::MacOsDeviceFinder() : DeviceFinder("osxaudio", { "osxaudio", "osx", "osxaudiosink" }) {}
QList<DeviceFinder::Device> MacOsDeviceFinder::ListDevices() {

View File

@@ -34,7 +34,7 @@
#include "devicefinder.h"
#include "pulsedevicefinder.h"
PulseDeviceFinder::PulseDeviceFinder() : DeviceFinder("pulseaudio", {"pulseaudio", "pulse", "pulsesink"} ), mainloop_(nullptr), context_(nullptr) {}
PulseDeviceFinder::PulseDeviceFinder() : DeviceFinder( "pulseaudio", { "pulseaudio", "pulse", "pulsesink" }), mainloop_(nullptr), context_(nullptr) {}
bool PulseDeviceFinder::Initialize() {

View File

@@ -313,7 +313,7 @@ void VLCEngine::StateChangedCallback(const libvlc_event_t *e, void *data) {
case libvlc_MediaPlayerEndReached:
engine->state_ = Engine::Idle;
emit engine->TrackEnded();
return; // Don't emit state changed here
return; // Don't emit state changed here
}
}