Formatting
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
@@ -37,4 +37,4 @@ class AlsaDeviceFinder : public DeviceFinder {
|
||||
Q_DISABLE_COPY(AlsaDeviceFinder)
|
||||
};
|
||||
|
||||
#endif // ALSADEVICEFINDER_H
|
||||
#endif // ALSADEVICEFINDER_H
|
||||
|
||||
@@ -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() {
|
||||
|
||||
|
||||
@@ -37,4 +37,4 @@ class AlsaPCMDeviceFinder : public DeviceFinder {
|
||||
Q_DISABLE_COPY(AlsaPCMDeviceFinder)
|
||||
};
|
||||
|
||||
#endif // ALSAPCMDEVICEFINDER_H
|
||||
#endif // ALSAPCMDEVICEFINDER_H
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
@@ -65,4 +65,4 @@ class DeviceFinder {
|
||||
Q_DISABLE_COPY(DeviceFinder)
|
||||
};
|
||||
|
||||
#endif // DEVICEFINDER_H
|
||||
#endif // DEVICEFINDER_H
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#ifdef INTERFACE
|
||||
#undef INTERFACE
|
||||
# undef INTERFACE
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
@@ -46,4 +46,4 @@ class DirectSoundDeviceFinder : public DeviceFinder {
|
||||
LPVOID state_voidptr) __attribute__((stdcall));
|
||||
};
|
||||
|
||||
#endif // DIRECTSOUNDDEVICEFINDER_H
|
||||
#endif // DIRECTSOUNDDEVICEFINDER_H
|
||||
|
||||
@@ -35,7 +35,7 @@ enum TrackChangeType {
|
||||
|
||||
Q_DECLARE_FLAGS(TrackChangeFlags, TrackChangeType)
|
||||
|
||||
}
|
||||
} // namespace Engine
|
||||
|
||||
typedef Engine::Base EngineBase;
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@ struct SimpleMetaBundle {
|
||||
QString lyrics;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace Engine
|
||||
|
||||
Q_DECLARE_METATYPE(EngineBase::OutputDetails)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -42,4 +42,4 @@ class GstBufferConsumer {
|
||||
Q_DISABLE_COPY(GstBufferConsumer)
|
||||
};
|
||||
|
||||
#endif // GSTBUFFERCONSUMER_H
|
||||
#endif // GSTBUFFERCONSUMER_H
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user