Skip to content

Instantly share code, notes, and snippets.

@crsib
crsib / GetSysErrorMessage.cpp
Created May 5, 2022 09:54
Last system error message
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),
@crsib
crsib / ffmpeg_build.sh
Created July 2, 2021 10:17
Build the FFmpeg libraries, that can be used with Audacity 3.0.3 AppImage
#!/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
################################################################################