6 #ifndef SWIFT_CORE_AFV_AUDIO_SOUNDCARDSAMPLEPROVIDER_H
7 #define SWIFT_CORE_AFV_AUDIO_SOUNDCARDSAMPLEPROVIDER_H
9 #include <QAudioFormat>
17 namespace swift::core::afv::audio
29 const QAudioFormat &
waveFormat()
const {
return m_waveFormat; }
35 void pttUpdate(
bool active,
const QVector<TxTransceiverDto> &txTransceivers);
38 int readSamples(QVector<float> &samples, qint64 count)
override;
60 QAudioFormat m_waveFormat;
62 QVector<CReceiverSampleProvider *> m_receiverInputs;
63 QVector<quint16> m_receiverIDs;
int readSamples(QVector< float > &samples, qint64 count)
Read samples.
bool setGainRatioForTransceiver(quint16 transceiverID, double gainRatio)
Setting gain for specified receiver.
void setBypassEffects(bool value)
Bypass effects.
swift::misc::aviation::CCallsignSet getReceivingCallsigns(quint16 transceiverID) const
Receiving callsign as single string.
void receivingCallsignsChanged(const TransceiverReceivingCallsignsChangedArgs &args)
Changed callsigns.
void updateRadioTransceivers(const QVector< TransceiverDto > &radioTransceivers)
Update all tranceivers.
QString getReceivingCallsignsString(quint16 transceiverID) const
Receiving callsign as single string.
void pttUpdate(bool active, const QVector< TxTransceiverDto > &txTransceivers)
Update PTT.
const QAudioFormat & waveFormat() const
Wave format.
CSoundcardSampleProvider(int sampleRate, const QVector< quint16 > &transceiverIDs, QObject *parent=nullptr)
Ctor.
void addOpusSamples(const IAudioDto &audioDto, const QVector< RxTransceiverDto > &rxTransceivers)
Add OPUS samples.
Value object for a set of callsigns.
Sample provider interface.