mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
AudioNetSink: suspend RTP sink
This commit is contained in:
parent
bc37dbfd24
commit
f310eb4dad
@ -27,7 +27,7 @@ AudioNetSink::AudioNetSink(QObject *parent, bool stereo) :
|
||||
m_rtpBufferAudio(0)
|
||||
{
|
||||
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()
|
||||
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user