19 #ifndef SDRBASE_AUDIO_AUDIONETSINK_H_ 20 #define SDRBASE_AUDIO_AUDIONETSINK_H_ 30 #include <QHostAddress> 56 AudioNetSink(QObject *parent,
int sampleRate,
bool stereo);
59 void setDestination(
const QString& address,
uint16_t port);
60 void addDestination(
const QString& address,
uint16_t port);
61 void deleteDestination(
const QString& address,
uint16_t port);
62 void setParameters(Codec codec,
bool stereo,
int sampleRate);
65 void write(qint16 sample);
66 void write(qint16 lSample, qint16 rSample);
68 bool isRTPCapable()
const;
69 bool selectType(SinkType type);
71 void moveToThread(QThread *thread);
74 static const int m_dataBlockSize = 65536;
75 static const int m_g722BlockSize = 12800;
76 static const int m_opusBlockSize = 960*2;
77 static const int m_opusOutputSize = 160;
80 void setNewCodecData();
81 void setDecimationFilters();
95 char m_data[m_dataBlockSize];
Linear 16 bit samples (no formatting)
PCM Mu-law 8 bit samples.
RTPSink * m_rtpBufferAudio
int decimation(float Fin, float Fout)
AudioCompressor m_audioCompressor
unsigned int m_bufferIndex
static const int m_udpBlockSize
G722 compressed 8 bit samples 16kS/s in 8kS/s out.
uint32_t m_decimationCount
AudioFilter m_audioFilter