mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Style
This commit is contained in:
@@ -44,23 +44,31 @@ namespace BlackCore
|
||||
//! Ctor
|
||||
CallsignSampleProvider(const QAudioFormat &audioFormat, const BlackCore::Afv::Audio::CReceiverSampleProvider *receiver, QObject *parent = nullptr);
|
||||
|
||||
//! Read samples
|
||||
int readSamples(QVector<float> &samples, qint64 count) override;
|
||||
|
||||
//! The callsign
|
||||
const QString &callsign() const { return m_callsign; }
|
||||
|
||||
//! Type
|
||||
const QString &type() const { return m_type; }
|
||||
|
||||
//! Is active?
|
||||
//! @{
|
||||
void active(const QString &callsign, const QString &aircraftType);
|
||||
void activeSilent(const QString &callsign, const QString &aircraftType);
|
||||
//! @}
|
||||
|
||||
//! Clean
|
||||
void clear();
|
||||
|
||||
void addOpusSamples(const IAudioDto &audioDto, float distanceRatio);
|
||||
void addSilentSamples(const IAudioDto &audioDto);
|
||||
|
||||
//! Callsign in use
|
||||
bool inUse() const;
|
||||
|
||||
//! Bypass effects
|
||||
void setBypassEffects(bool bypassEffects);
|
||||
|
||||
private:
|
||||
@@ -84,13 +92,13 @@ namespace BlackCore
|
||||
bool m_bypassEffects = false;
|
||||
float m_distanceRatio = 1.0;
|
||||
const CReceiverSampleProvider *m_receiver = nullptr;
|
||||
BlackSound::SampleProvider::CMixingSampleProvider *m_mixer = nullptr;
|
||||
BlackSound::SampleProvider::CMixingSampleProvider *m_mixer = nullptr;
|
||||
BlackSound::SampleProvider::CResourceSoundSampleProvider *m_crackleSoundProvider = nullptr;
|
||||
BlackSound::SampleProvider::CResourceSoundSampleProvider *m_whiteNoise = nullptr;
|
||||
BlackSound::SampleProvider::CResourceSoundSampleProvider *m_whiteNoise = nullptr;
|
||||
BlackSound::SampleProvider::CResourceSoundSampleProvider *m_hfWhiteNoise = nullptr;
|
||||
BlackSound::SampleProvider::CSawToothGenerator *m_acBusNoise = nullptr;
|
||||
BlackSound::SampleProvider::CSawToothGenerator *m_acBusNoise = nullptr;
|
||||
BlackSound::SampleProvider::CSimpleCompressorEffect *m_simpleCompressorEffect = nullptr;
|
||||
BlackSound::SampleProvider::CEqualizerSampleProvider *m_voiceEq = nullptr;
|
||||
BlackSound::SampleProvider::CEqualizerSampleProvider *m_voiceEq = nullptr;
|
||||
BlackSound::SampleProvider::CBufferedWaveProvider *m_audioInput = nullptr;
|
||||
QTimer *m_timer = nullptr;
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace BlackGui
|
||||
|
||||
CStatusMessageList CCockpitComForm::validate(bool nested) const
|
||||
{
|
||||
Q_UNUSED(nested);
|
||||
Q_UNUSED(nested)
|
||||
CStatusMessageList msgs;
|
||||
return msgs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user