1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

AudioNetSink: suspend RTP sink

This commit is contained in:
f4exb 2018-03-07 20:18:06 +01:00
parent bc37dbfd24
commit f310eb4dad
2 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ AudioNetSink::AudioNetSink(QObject *parent, bool stereo) :
m_rtpBufferAudio(0) m_rtpBufferAudio(0)
{ {
m_udpBufferAudioMono = new UDPSink<int16_t>(parent, m_udpBlockSize); m_udpBufferAudioMono = new UDPSink<int16_t>(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() AudioNetSink::~AudioNetSink()
@ -40,10 +40,10 @@ AudioNetSink::~AudioNetSink()
} }
} }
bool AudioNetSink::isRTPCapable() const //bool AudioNetSink::isRTPCapable() const
{ //{
return m_rtpBufferAudio->isValid(); // return m_rtpBufferAudio->isValid();
} //}
bool AudioNetSink::selectType(SinkType type) bool AudioNetSink::selectType(SinkType type)
{ {

View File

@ -45,7 +45,7 @@ public:
void write(qint16 sample); void write(qint16 sample);
bool isRTPCapable() const; bool isRTPCapable() const { return false; }
bool selectType(SinkType type); bool selectType(SinkType type);
void moveToThread(QThread *thread); void moveToThread(QThread *thread);