Remove unused member variable that breaks the Raspberry Pi build

This commit is contained in:
Bill Somerville 2020-09-26 17:47:38 +01:00
parent 3b6eabc7a8
commit f12f481955
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
2 changed files with 3 additions and 6 deletions

View File

@ -51,7 +51,7 @@ void SoundOutput::setFormat (QAudioDeviceInfo const& device, unsigned channels,
m_framesBuffered = frames_buffered;
}
void SoundOutput::restart (AudioDevice * source)
void SoundOutput::restart (QIODevice * source)
{
if (!m_device.isNull ())
{
@ -111,7 +111,6 @@ void SoundOutput::restart (AudioDevice * source)
#endif
}
m_stream->setCategory ("production");
m_source = source;
m_stream->start (source);
// qDebug () << "SoundOut selected buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
}

View File

@ -6,9 +6,8 @@
#include <QString>
#include <QAudioOutput>
#include <QAudioDeviceInfo>
#include <QPointer>
class AudioDevice;
class QIODevice;
class QAudioDeviceInfo;
// An instance of this sends audio data to a specified soundcard.
@ -30,7 +29,7 @@ public:
public Q_SLOTS:
void setFormat (QAudioDeviceInfo const& device, unsigned channels, int frames_buffered = 0);
void restart (AudioDevice *);
void restart (QIODevice *);
void suspend ();
void resume ();
void reset ();
@ -52,7 +51,6 @@ private:
QAudioDeviceInfo m_device;
unsigned m_channels;
QScopedPointer<QAudioOutput> m_stream;
QPointer<AudioDevice> m_source;
int m_framesBuffered;
qreal m_volume;
bool error_;