This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# Build the FFmpeg libraries, that can be used with Audacity 3.0.3 AppImage | |
# This requires build-essential, GCC, nasm or yasm from the distro of your choice. | |
# This script will create FFmpeg_Package_v2.2.2 in the current working directory, | |
# that contains the required libraries in the lib folder. | |
# The DT_RUNPATH is set to the location of the resulting package, so it is | |
# not really movable | |
################################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::string GetSysErrorMessage(unsigned long errorCode) | |
{ | |
// get error message from system | |
LPTSTR messageBuffer; | |
if ( | |
::FormatMessage( | |
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | | |
FORMAT_MESSAGE_IGNORE_INSERTS, | |
NULL, errorCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), |