mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T730, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
09b38b4e6d
commit
3ddded423a
@@ -30,7 +30,6 @@ namespace BlackCore
|
||||
m_waveFormat.setCodec("audio/pcm");
|
||||
|
||||
m_mixer = new CMixingSampleProvider(this);
|
||||
|
||||
m_receiverIDs = transceiverIDs;
|
||||
|
||||
for (quint16 transceiverID : transceiverIDs)
|
||||
@@ -43,11 +42,6 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
QAudioFormat CSoundcardSampleProvider::waveFormat() const
|
||||
{
|
||||
return m_waveFormat;
|
||||
}
|
||||
|
||||
void CSoundcardSampleProvider::setBypassEffects(bool value)
|
||||
{
|
||||
for (CReceiverSampleProvider *receiverInput : m_receiverInputs)
|
||||
|
||||
@@ -33,16 +33,29 @@ namespace BlackCore
|
||||
//! Ctor
|
||||
CSoundcardSampleProvider(int sampleRate, const QVector<quint16> &transceiverIDs, QObject *parent = nullptr);
|
||||
|
||||
QAudioFormat waveFormat() const;
|
||||
//! Wave format
|
||||
const QAudioFormat &waveFormat() const { return m_waveFormat; }
|
||||
|
||||
//! Bypass effects
|
||||
void setBypassEffects(bool value);
|
||||
|
||||
//! Update PTT
|
||||
void pttUpdate(bool active, const QVector<TxTransceiverDto> &txTransceivers);
|
||||
|
||||
//! \copydoc ISampleProvider::readSamples
|
||||
virtual int readSamples(QVector<qint16> &samples, qint64 count) override;
|
||||
|
||||
//! Add OPUS samples
|
||||
void addOpusSamples(const IAudioDto &audioDto, const QVector<RxTransceiverDto> &rxTransceivers);
|
||||
|
||||
//! Update all tranceivers
|
||||
void updateRadioTransceivers(const QVector<TransceiverDto> &radioTransceivers);
|
||||
|
||||
//! Receiving callsign as single string
|
||||
QString getReceivingCallsigns(quint16 transceiverID);
|
||||
|
||||
signals:
|
||||
//! Changed callsigns
|
||||
void receivingCallsignsChanged(const TransceiverReceivingCallsignsChangedArgs &args);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user