Skip to content

Instantly share code, notes, and snippets.

View Metalhead33's full-sized avatar

Metalhead33 Metalhead33

View GitHub Profile
@Metalhead33
Metalhead33 / Xorg.0.log
Created April 4, 2026 09:39
Xorg.0.log (2026-04-04)
Argument -noreset is removed in XLibre (for more context: https://github.com/orgs/X11Libre/discussions/424 )
[2026-04-04 11:27:29] (--) Log file renamed from "/var/log/Xorg.pid-2981.log" to "/var/log/Xorg.0.log"
[2026-04-04 11:27:30]
XLibre X Server 1.25.1.2
X Protocol Version 11, Revision 0
[2026-04-04 11:27:30] Current Operating System: Linux localhost 6.18.18-gentoo #1 SMP PREEMPT_DYNAMIC Tue Mar 17 11:30:13 CET 2026 x86_64
[2026-04-04 11:27:30] Kernel command line: init=/usr/lib/systemd/systemd root=/dev/sda4 ro BOOT_IMAGE=/boot/kernel-6.18.18-gentoo root=/dev/sda4 ro mitigations=auto nvidia-drm.modeset=1
[2026-04-04 11:27:30] Current version of pixman: 0.46.4
[2026-04-04 11:27:30] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
@Metalhead33
Metalhead33 / AudioBuffer.hpp
Last active August 26, 2020 22:00
Just random stuff.
#ifndef AUDIOBUFFER_HPP
#define AUDIOBUFFER_HPP
#include "AudioPacket.hpp"
#include <memory>
#include <cstring>
namespace Audio {
template <class Allocator = std::allocator<float>> class Buffer {
private:
float* audioData;
@Metalhead33
Metalhead33 / OpenALWrapper.cpp
Last active April 10, 2018 18:38
OpenAL Wrapper
#include "OpenALWrapper.hpp"
#include <dlfcn.h>
LPALCCREATECONTEXT alcCreateContext;
LPALCMAKECONTEXTCURRENT alcMakeContextCurrent;
LPALCPROCESSCONTEXT alcProcessContext;
LPALCSUSPENDCONTEXT alcSuspendContext;
LPALCDESTROYCONTEXT alcDestroyContext;
LPALCGETCURRENTCONTEXT alcGetCurrentContext;
LPALCGETCONTEXTSDEVICE alcGetContextsDevice;