This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "OpenALWrapper.hpp" | |
#include <dlfcn.h> | |
LPALCCREATECONTEXT alcCreateContext; | |
LPALCMAKECONTEXTCURRENT alcMakeContextCurrent; | |
LPALCPROCESSCONTEXT alcProcessContext; | |
LPALCSUSPENDCONTEXT alcSuspendContext; | |
LPALCDESTROYCONTEXT alcDestroyContext; | |
LPALCGETCURRENTCONTEXT alcGetCurrentContext; | |
LPALCGETCONTEXTSDEVICE alcGetContextsDevice; |