mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Remove unused member variable that breaks the Raspberry Pi build
This commit is contained in:
parent
3b6eabc7a8
commit
f12f481955
@ -51,7 +51,7 @@ void SoundOutput::setFormat (QAudioDeviceInfo const& device, unsigned channels,
|
|||||||
m_framesBuffered = frames_buffered;
|
m_framesBuffered = frames_buffered;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SoundOutput::restart (AudioDevice * source)
|
void SoundOutput::restart (QIODevice * source)
|
||||||
{
|
{
|
||||||
if (!m_device.isNull ())
|
if (!m_device.isNull ())
|
||||||
{
|
{
|
||||||
@ -111,7 +111,6 @@ void SoundOutput::restart (AudioDevice * source)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
m_stream->setCategory ("production");
|
m_stream->setCategory ("production");
|
||||||
m_source = source;
|
|
||||||
m_stream->start (source);
|
m_stream->start (source);
|
||||||
// qDebug () << "SoundOut selected buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
|
// qDebug () << "SoundOut selected buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,8 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QAudioOutput>
|
#include <QAudioOutput>
|
||||||
#include <QAudioDeviceInfo>
|
#include <QAudioDeviceInfo>
|
||||||
#include <QPointer>
|
|
||||||
|
|
||||||
class AudioDevice;
|
class QIODevice;
|
||||||
class QAudioDeviceInfo;
|
class QAudioDeviceInfo;
|
||||||
|
|
||||||
// An instance of this sends audio data to a specified soundcard.
|
// An instance of this sends audio data to a specified soundcard.
|
||||||
@ -30,7 +29,7 @@ public:
|
|||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void setFormat (QAudioDeviceInfo const& device, unsigned channels, int frames_buffered = 0);
|
void setFormat (QAudioDeviceInfo const& device, unsigned channels, int frames_buffered = 0);
|
||||||
void restart (AudioDevice *);
|
void restart (QIODevice *);
|
||||||
void suspend ();
|
void suspend ();
|
||||||
void resume ();
|
void resume ();
|
||||||
void reset ();
|
void reset ();
|
||||||
@ -52,7 +51,6 @@ private:
|
|||||||
QAudioDeviceInfo m_device;
|
QAudioDeviceInfo m_device;
|
||||||
unsigned m_channels;
|
unsigned m_channels;
|
||||||
QScopedPointer<QAudioOutput> m_stream;
|
QScopedPointer<QAudioOutput> m_stream;
|
||||||
QPointer<AudioDevice> m_source;
|
|
||||||
int m_framesBuffered;
|
int m_framesBuffered;
|
||||||
qreal m_volume;
|
qreal m_volume;
|
||||||
bool error_;
|
bool error_;
|
||||||
|
Loading…
Reference in New Issue
Block a user