Skip to content

Instantly share code, notes, and snippets.

@irungentoo
irungentoo / openal_loopback.diff
Last active August 29, 2015 14:15
Openal loopback patch.
diff --git a/Alc/ALc.c b/Alc/ALc.c
index baf7f01..586cfb7 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2221,6 +2221,8 @@ static ALCvoid FreeDevice(ALCdevice *device)
al_free(device->DryBuffer);
device->DryBuffer = NULL;
+ DestroyRingBuffer(device->loopback_ring);
+
@irungentoo
irungentoo / gist:58dd6df2681093026c87
Last active August 29, 2015 14:02
tox dns3 standard
tox dns3 standard.
Encrypted Tox dns requests and responses.
request:
[4 byte nonce][temporary client public key][encrypted with crypto_box(temporary client public key, server long term public key, 4 byte nonce + 20 byte zeros)[queried username]]
-> base32 (a to z, 0 to 5) -> separate with . as needed.
Notes:
@irungentoo
irungentoo / build_qt_gui.sh
Last active January 4, 2016 07:39
NOTE: DEPRECATED. Script to statically cross compile https://github.com/nurupo/ProjectTox-Qt-GUI for windows from linux.
#You need mingw with gcc version 4.7 or higher because ProjectTox-Qt-GUI uses C++11
#change WINDOWS_TOOLCHAIN from i686-w64-mingw32 to whatever your toolchain is.
WINDOWS_TOOLCHAIN=i686-w64-mingw32
mkdir prefix
cd prefix
PREFIX_DIR=$(pwd)
cd ..
@irungentoo
irungentoo / windows_build.sh
Last active March 5, 2024 07:33
NOTE: DEPRECATED. Build script to cross compile Tox for windows with all of its dependencies.
#Note: This only works with mingw 3.0 or later (previous versions don't have pthreads)
#You need mingw 3.0 or later, yasm and cmake
#
#If you use something other than mingw-w64-i686 you must modify the script accordingly
#
#If you are on ubuntu 13.10:
#sudo apt-get install gcc-mingw-w64-i686 yasm cmake
mkdir prefix