Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

First working example and implementation of audio playback with OpenAL-soft library #33

Closed
wants to merge 11 commits into from
9 changes: 9 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
BasedOnStyle: LLVM,
UseTab: Never,
IndentWidth: 4,
TabWidth: 4,
BreakBeforeBraces: Attach,
IndentCaseLabels: false,
ColumnLimit: 0,
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ include/glm
include/GLFW
include/glad
include/KHR
include/AL

obj-x86_64-linux-gnu
share
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "dependencies/gladRepo"]
path = dependencies/gladRepo
url = https://github.com/Dav1dde/glad
[submodule "dependencies/openal-soft"]
path = dependencies/openal-soft
url = https://github.com/kcat/openal-soft.git
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,34 @@ add_library(redhand SHARED
src/texture.cpp
src/game_object.cpp
src/world.cpp
src/engine.cpp)
src/engine.cpp
src/AudioHandler.cpp)

if (UNIX)
find_library(GLFW
NAMES libglfw.so.3 libglfw.so glfw libglfw.so.3.2
HINTS /usr/lib/x86_64-linux-gnu/ )
find_library(libaudio
NAMES libaudio.so
HINTS /usr/lib/x86_64-linux-gnu/ )
find_library(OPENAL
NAMES libopenal.so
HINTS /usr/lib/ ${REPOROOT}/lib)
target_link_libraries(redhand ${GLFW})
target_link_libraries(redhand ${libaudio})
target_link_libraries(redhand ${OPENAL})
target_link_libraries(redhand dl)
endif (UNIX)

if (WIN32)
find_library(GLFW
NAMES glfw3.dll glfw.dll libglfw.dll glfw
HINTS ${ROOTDIR}/lib/ )
find_library(OPENAL
NAMES openal.dll openal
HINTS ${ROOTDIR}/lib/ )
target_link_libraries(redhand ${GLFW})
target_link_libraries(redhand ${OPENAL})
endif (WIN32)

install(TARGETS redhand
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = libredhand
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 0.0.5
PROJECT_NUMBER = 0.0.7

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
libredhand (0.0.7) bionic; urgency=medium

* added initial audio implementation

-- Noa Sakurajin <[email protected]> Tue, 14 Apr 2020 10:29:20 +0200

libredhand (0.0.6) bionic; urgency=medium

* finished refactoring of game_object
Expand Down
23 changes: 18 additions & 5 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
Source: libredhand
Priority: optional
Maintainer: Noa Sakurajin <[email protected]>
Build-Depends: debhelper, dh-make, cmake, gcc (>= 7.0.0), g++ (>= 7.0.0), fakeroot, libglfw3, libglfw3-dev, libglm-dev, python, git, libgl1-mesa-dev, doxygen, graphviz
Build-Depends:
debhelper,
dh-make,
cmake,
gcc (>= 7.0.0),
g++ (>= 7.0.0),
fakeroot,
libglfw3,
libglfw3-dev,
libglm-dev,
python,
git,
libgl1-mesa-dev,
doxygen,
graphviz,
libaudio-dev,
libopenal-dev
Standards-Version: 4.1.2
Section: libs
#Homepage: <insert the upstream URL, if relevant>
Vcs-Git: https://github.com/noah1510/redhand
#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/libredhand.git

Package: libredhand
Architecture: amd64
Section: libs
Multi-Arch: same
Depends: libglfw3, libglm-dev
Recommends: libredhand-doc
Depends: ${misc:Depends}, ${shlibs:Depends}, libglfw3, libglm-dev
Description: a small and easy to use game development library

Package: libredhand-dev
Expand Down
Loading