Skip to content

Instantly share code, notes, and snippets.

@irungentoo
irungentoo / openal_loopback.diff
Last active Aug 29, 2015
Openal loopback patch.
View openal_loopback.diff
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);
+
View gist:58dd6df2681093026c87
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 Jan 4, 2016
NOTE: DEPRECATED. Script to statically cross compile https://github.com/nurupo/ProjectTox-Qt-GUI for windows from linux.
View build_qt_gui.sh
#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 Dec 25, 2015
NOTE: DEPRECATED. Build script to cross compile Tox for windows with all of its dependencies.
View windows_build.sh
#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