Changeset View
Changeset View
Standalone View
Standalone View
head/net/xrdp-devel/files/patch-issue-910
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- sesman/chansrv/sound.c.orig 2017-09-28 02:25:19 UTC | |||||
+++ sesman/chansrv/sound.c | |||||
@@ -400,19 +400,16 @@ sound_process_output_format(int aindex, | |||||
LOG(0, ("wFormatTag, fdk aac")); | |||||
g_client_does_fdk_aac = 1; | |||||
g_client_fdk_aac_index = aindex; | |||||
- g_bbuf_size = 4096; | |||||
break; | |||||
case WAVE_FORMAT_MPEGLAYER3: | |||||
LOG(0, ("wFormatTag, mp3")); | |||||
g_client_does_mp3lame = 1; | |||||
g_client_mp3lame_index = aindex; | |||||
- g_bbuf_size = 11520; | |||||
break; | |||||
case WAVE_FORMAT_OPUS: | |||||
LOG(0, ("wFormatTag, opus")); | |||||
g_client_does_opus = 1; | |||||
g_client_opus_index = aindex; | |||||
- g_bbuf_size = 11520; | |||||
break; | |||||
} | |||||
@@ -840,14 +837,17 @@ sound_wave_compress(char *data, int data | |||||
{ | |||||
if (g_client_does_fdk_aac) | |||||
{ | |||||
+ g_bbuf_size = 4096; | |||||
return sound_wave_compress_fdk_aac(data, data_bytes, format_index); | |||||
} | |||||
else if (g_client_does_opus) | |||||
{ | |||||
+ g_bbuf_size = 11520; | |||||
return sound_wave_compress_opus(data, data_bytes, format_index); | |||||
} | |||||
else if (g_client_does_mp3lame) | |||||
{ | |||||
+ g_bbuf_size = 11520; | |||||
return sound_wave_compress_mp3lame(data, data_bytes, format_index); | |||||
} | |||||
return data_bytes; |