diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-22 13:21:30 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-22 13:21:30 -0400 |
commit | 8d9c74bc4f9652739143163f6861682999fbfbe5 (patch) | |
tree | fade1044a4fef66e67c6ca8cf9f1c0e13b4b6a53 /engine/xe_sound_device.cpp | |
parent | add alut (diff) | |
download | minecraftvulkan-8d9c74bc4f9652739143163f6861682999fbfbe5.tar.gz minecraftvulkan-8d9c74bc4f9652739143163f6861682999fbfbe5.tar.bz2 minecraftvulkan-8d9c74bc4f9652739143163f6861682999fbfbe5.zip |
finish openal and ALUT
Diffstat (limited to 'engine/xe_sound_device.cpp')
-rw-r--r-- | engine/xe_sound_device.cpp | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/engine/xe_sound_device.cpp b/engine/xe_sound_device.cpp deleted file mode 100644 index 3bc931d..0000000 --- a/engine/xe_sound_device.cpp +++ /dev/null @@ -1,64 +0,0 @@ -#include "xe_sound_device.hpp" - -#include <stdexcept> -#include <iostream> -#include <cstring> - -namespace xe { - -XeSoundDevice::XeSoundDevice() { - -// ALboolean enumeration; -// enumeration = alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT"); -// if (enumeration == AL_FALSE) { -// fprintf(stderr, "enumeration extension not available\n"); -// listAudioDevices(alcGetString(NULL, ALC_DEVICE_SPECIFIER)); -// } - -// listAudioDevices(alcGetString(NULL, ALC_DEVICE_SPECIFIER)); - -// const ALCchar* name = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER); - -// device = alcOpenDevice(name); -// if (!device) { -// std::runtime_error("failed to get sound device"); -// } - -// std::cout << "Audio Device: " << alcGetString(device, ALC_DEVICE_SPECIFIER) << "\n"; - -// context = alcCreateContext(device, NULL); -// if(!alcMakeContextCurrent(context)) { -// std::runtime_error("failed to make sound context current"); -// } - -// alListener3f(AL_POSITION, 0.f, 0.f, 0.f); -// alListener3f(AL_VELOCITY, 0.f, 0.f, 0.f); -// ALfloat frontAndUpVectors[] = { -// /* front*/1.f, 0.f, 0.f, -// /* up */ 0.f, 1.f, 0.f -// }; -// alListenerfv(AL_ORIENTATION, frontAndUpVectors); - -// } - -// void XeSoundDevice::listAudioDevices(const ALCchar* devices) { -// const ALCchar *device = devices, *next = devices + 1; -// size_t len = 0; - -// fprintf(stdout, "Devices list: "); -// while (device && *device != '\0' && next && *next != '\0') { -// fprintf(stdout, "%s, ", device); -// len = strlen(device); -// device += (len + 1); -// next += (len + 2); -// } -// std::cout << "\n"; -} - -XeSoundDevice::~XeSoundDevice() { - // alcMakeContextCurrent(nullptr); - // alcDestroyContext(context); - // alcCloseDevice(device); -} - -}
\ No newline at end of file |