From f310eb4dad34de087b6a3bda487e295343b7482a Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 7 Mar 2018 20:18:06 +0100 Subject: [PATCH] AudioNetSink: suspend RTP sink --- sdrbase/audio/audionetsink.cpp | 10 +++++----- sdrbase/audio/audionetsink.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdrbase/audio/audionetsink.cpp b/sdrbase/audio/audionetsink.cpp index 8960ff80e..e2f982b5c 100644 --- a/sdrbase/audio/audionetsink.cpp +++ b/sdrbase/audio/audionetsink.cpp @@ -27,7 +27,7 @@ AudioNetSink::AudioNetSink(QObject *parent, bool stereo) : m_rtpBufferAudio(0) { m_udpBufferAudioMono = new UDPSink(parent, m_udpBlockSize); - m_rtpBufferAudio = new RTPSink("127.0.0.1", 9999, stereo ? RTPSink::PayloadL16Stereo : RTPSink::PayloadL16Mono); + //m_rtpBufferAudio = new RTPSink("127.0.0.1", 9999, stereo ? RTPSink::PayloadL16Stereo : RTPSink::PayloadL16Mono); } AudioNetSink::~AudioNetSink() @@ -40,10 +40,10 @@ AudioNetSink::~AudioNetSink() } } -bool AudioNetSink::isRTPCapable() const -{ - return m_rtpBufferAudio->isValid(); -} +//bool AudioNetSink::isRTPCapable() const +//{ +// return m_rtpBufferAudio->isValid(); +//} bool AudioNetSink::selectType(SinkType type) { diff --git a/sdrbase/audio/audionetsink.h b/sdrbase/audio/audionetsink.h index bd2c1f4f7..9a8c9ca2b 100644 --- a/sdrbase/audio/audionetsink.h +++ b/sdrbase/audio/audionetsink.h @@ -45,7 +45,7 @@ public: void write(qint16 sample); - bool isRTPCapable() const; + bool isRTPCapable() const { return false; } bool selectType(SinkType type); void moveToThread(QThread *thread);