Line 0
Link Here
|
|
|
1 |
--- sesman/chansrv/sound.c.orig 2018-09-25 06:09:22 UTC |
2 |
+++ sesman/chansrv/sound.c |
3 |
@@ -40,6 +40,11 @@ |
4 |
static HANDLE_AACENCODER g_fdk_aac_encoder = 0; |
5 |
#endif |
6 |
|
7 |
+#define FDKENC_VER_AT_LEAST(vl0, vl1) \ |
8 |
+ (defined(AACENCODER_LIB_VL0) && \ |
9 |
+ ((AACENCODER_LIB_VL0 > vl0) || \ |
10 |
+ (AACENCODER_LIB_VL0 == vl0 && AACENCODER_LIB_VL1 >= vl1))) |
11 |
+ |
12 |
#if defined(XRDP_OPUS) |
13 |
#include <opus/opus.h> |
14 |
static OpusEncoder *g_opus_encoder = 0; |
15 |
@@ -598,7 +603,12 @@ sound_wave_compress_fdk_aac(char *data, |
16 |
LOG(0, (" inBufFillLevel %d", info.inBufFillLevel)); |
17 |
LOG(0, (" inputChannels %d", info.inputChannels)); |
18 |
LOG(0, (" frameLength %d", info.frameLength)); |
19 |
+#if FDKENC_VER_AT_LEAST(4, 0) |
20 |
+ LOG(0, (" nDelay %d", info.nDelay)); |
21 |
+ LOG(0, (" nDelayCore %d", info.nDelayCore)); |
22 |
+#else |
23 |
LOG(0, (" encoderDelay %d", info.encoderDelay)); |
24 |
+#endif |
25 |
LOG(0, (" confBuf")); |
26 |
LOG(0, (" confSize %d", info.confSize)); |
27 |
} |