summaryrefslogtreecommitdiff
path: root/Audio/soundout.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-09-15 23:04:23 +0200
committerChristoph Berg <myon@debian.org>2025-09-15 23:04:23 +0200
commit0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (patch)
treed702795f99ac38e0cc17e25f0f7e50fa3e05baf9 /Audio/soundout.h
parent310d05acf2c9233f7e336ae7dd9ffb7b54ca4e62 (diff)
New upstream version 3.0.0~rc1+repackupstream/3.0.0_rc1+repack
Diffstat (limited to 'Audio/soundout.h')
-rwxr-xr-xAudio/soundout.h120
1 files changed, 60 insertions, 60 deletions
diff --git a/Audio/soundout.h b/Audio/soundout.h
index 387c1b0f..d5ec8f36 100755
--- a/Audio/soundout.h
+++ b/Audio/soundout.h
@@ -1,60 +1,60 @@
-// -*- Mode: C++ -*-
-#ifndef SOUNDOUT_H__
-#define SOUNDOUT_H__
-
-#include <QObject>
-#include <QString>
-#include <QAudioOutput>
-#include <QAudioDeviceInfo>
-#include <QOperatingSystemVersion>
-
-class QIODevice;
-class QAudioDeviceInfo;
-
-// An instance of this sends audio data to a specified soundcard.
-
-class SoundOutput
- : public QObject
-{
- Q_OBJECT;
-
-public:
- SoundOutput ()
- : m_framesBuffered {0}
- , m_volume {1.0}
- , error_ {false}
- {
- }
-
- qreal attenuation () const;
-
-public Q_SLOTS:
- void setFormat (QAudioDeviceInfo const& device, unsigned channels, int frames_buffered = 0);
- void restart (QIODevice *);
- void suspend ();
- void resume ();
- void reset ();
- void stop ();
- void setAttenuation (qreal); /* unsigned */
- void resetAttenuation (); /* to zero */
-
-Q_SIGNALS:
- void error (QString message) const;
- void status (QString message) const;
-
-private:
- bool checkStream () const;
-
-private Q_SLOTS:
- void handleStateChanged (QAudio::State);
-
-private:
- QAudioDeviceInfo m_device;
- unsigned m_channels;
- QScopedPointer<QAudioOutput> m_stream;
- int m_framesBuffered;
- qreal m_volume;
- bool error_;
-};
-
-#endif
+// -*- Mode: C++ -*-
+#ifndef SOUNDOUT_H__
+#define SOUNDOUT_H__
+
+#include <QObject>
+#include <QString>
+#include <QAudioOutput>
+#include <QAudioDeviceInfo>
+#include <QOperatingSystemVersion>
+
+class QIODevice;
+class QAudioDeviceInfo;
+
+// An instance of this sends audio data to a specified soundcard.
+
+class SoundOutput
+ : public QObject
+{
+ Q_OBJECT;
+
+public:
+ SoundOutput ()
+ : m_framesBuffered {0}
+ , m_volume {1.0}
+ , error_ {false}
+ {
+ }
+
+ qreal attenuation () const;
+
+public Q_SLOTS:
+ void setFormat (QAudioDeviceInfo const& device, unsigned channels, int frames_buffered = 0);
+ void restart (QIODevice *);
+ void suspend ();
+ void resume ();
+ void reset ();
+ void stop ();
+ void setAttenuation (qreal); /* unsigned */
+ void resetAttenuation (); /* to zero */
+
+Q_SIGNALS:
+ void error (QString message) const;
+ void status (QString message) const;
+
+private:
+ bool checkStream () const;
+
+private Q_SLOTS:
+ void handleStateChanged (QAudio::State);
+
+private:
+ QAudioDeviceInfo m_device;
+ unsigned m_channels;
+ QScopedPointer<QAudioOutput> m_stream;
+ int m_framesBuffered;
+ qreal m_volume;
+ bool error_;
+};
+
+#endif