Skip to content

Instantly share code, notes, and snippets.

View Metalhead33's full-sized avatar

Metalhead33 Metalhead33

View GitHub Profile
@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;