Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
feat(audio): add alternative OpenAL backend
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Aug 5, 2017
1 parent 0843b77 commit c715729
Show file tree
Hide file tree
Showing 6 changed files with 888 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ set(${PROJECT_NAME}_SOURCES
src/audio/audio.h
src/audio/backend/openal.cpp
src/audio/backend/openal.h
src/audio/backend/openal2.cpp
src/audio/backend/openal2.h
src/chatlog/chatlinecontent.cpp
src/chatlog/chatlinecontent.h
src/chatlog/chatlinecontentproxy.cpp
Expand Down
3 changes: 2 additions & 1 deletion src/audio/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "audio.h"
#include "src/audio/backend/openal.h"
#include "src/audio/backend/openal2.h"

#include <QDebug>

Expand Down Expand Up @@ -168,6 +169,6 @@
*/
Audio& Audio::getInstance()
{
static OpenAL instance;
static OpenAL2 instance;
return instance;
}
2 changes: 2 additions & 0 deletions src/audio/backend/openal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ OpenAL::OpenAL()
, alMainSource{0}
, alMainBuffer{0}
, outputInitialized{false}
, minInGain{-30}
, maxInGain{30}
{
// initialize OpenAL error stack
alGetError();
Expand Down
Loading

0 comments on commit c715729

Please sign in to comment.