From 1cf5764ea61b6e1c3e6004961def688712244d51 Mon Sep 17 00:00:00 2001 From: Scott Weis KB2EAR Date: Thu, 14 Apr 2022 12:59:02 -0400 Subject: [PATCH] Fix missing audio on rdio-scanner web and mobile devices --- trunk-recorder/call_concluder/call_concluder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk-recorder/call_concluder/call_concluder.cc b/trunk-recorder/call_concluder/call_concluder.cc index 875469ab1..00e79b72f 100644 --- a/trunk-recorder/call_concluder/call_concluder.cc +++ b/trunk-recorder/call_concluder/call_concluder.cc @@ -32,7 +32,7 @@ int combine_wav(std::string files, char *target_filename) { int convert_media(char *filename, char *converted) { char shell_command[400]; - int nchars = snprintf(shell_command, 400, "sox %s --norm=-.01 -t wav - | fdkaac --silent -p 2 --ignorelength -b 8000 -o %s -", filename, converted); + int nchars = snprintf(shell_command, 400, "sox %s --norm=-.01 -t wav - | fdkaac --silent -p 2 --moov-before-mdat --ignorelength -b 8000 -o %s -", filename, converted); if (nchars >= 400) { BOOST_LOG_TRIVIAL(error) << "Call uploader: Command longer than 400 characters"; @@ -385,4 +385,4 @@ void Call_Concluder::manage_call_data_workers() { it++; } } -} \ No newline at end of file +}