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

RTP audio: fix su that JRTPLIB define is only in AudioNetSink implementation (cpp)

This commit is contained in:
f4exb 2018-01-29 05:19:59 +01:00
parent cc461f2f0f
commit 9b68836203
2 changed files with 7 additions and 6 deletions

View File

@ -16,6 +16,10 @@
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
#include "audionetsink.h" #include "audionetsink.h"
#include "util/udpsink.h"
#ifdef HAS_JRTPLIB
#include "util/rtpsink.h"
#endif
const int AudioNetSink::m_udpBlockSize = 512; const int AudioNetSink::m_udpBlockSize = 512;

View File

@ -21,10 +21,9 @@
#include <QObject> #include <QObject>
#include "dsp/dsptypes.h" #include "dsp/dsptypes.h"
#include "util/export.h" #include "util/export.h"
#include "util/udpsink.h"
#ifdef HAS_JRTPLIB template<typename T> class UDPSink;
#include "util/rtpsink.h" template<typename T> class RTPSink;
#endif
class SDRANGEL_API AudioNetSink { class SDRANGEL_API AudioNetSink {
public: public:
@ -53,10 +52,8 @@ protected:
SinkType m_type; SinkType m_type;
UDPSink<qint16> *m_udpBufferAudioMono; UDPSink<qint16> *m_udpBufferAudioMono;
UDPSink<AudioSample> *m_udpBufferAudioStereo; UDPSink<AudioSample> *m_udpBufferAudioStereo;
#ifdef HAS_JRTPLIB
RTPSink<qint16> *m_rtpBufferAudioMono; RTPSink<qint16> *m_rtpBufferAudioMono;
RTPSink<AudioSample> *m_rtpBufferAudioStereo; RTPSink<AudioSample> *m_rtpBufferAudioStereo;
#endif
}; };