Skip to content

Commit

Permalink
Fix missing audio on rdio-scanner web and mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
kb2ear authored Apr 14, 2022
1 parent dd3e6bf commit 1cf5764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk-recorder/call_concluder/call_concluder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -385,4 +385,4 @@ void Call_Concluder::manage_call_data_workers() {
it++;
}
}
}
}

0 comments on commit 1cf5764

Please sign in to comment.