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; }
60 QAudioFormat m_waveFormat;
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.
QObject * parent() const const