Giter Club home page Giter Club logo

oalwrapper's Introduction

OAL Wrapper Source Code

Yes, here is the OpenAL C++ Wrapper that was built and used for the Penumbra series as well as Amnesia: The Dark Descent.

Read through the TODO file for various known things that should be cleaned up / fixed.

Included are project files for Xcode, Cmake (for Linux).

Contributing Code

We encourage everyone to contribute code to this project, so just sign up for a github account, create a fork and hack away at the codebase. We will start an Open Source forum on the Frictional Games forums as a place to talk about changes and to submit patches from your forks.

License Information

All code is under the zlib license. Please read the LICENSE file for more information on terms of use.

oalwrapper's People

Contributors

chewi avatar jensp avatar pattumiera avatar urkle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oalwrapper's Issues

[Linux] Penumbra: Black Plague crashing at startup due to OpenAL sound function error

Hello, I'm running the game through a Linux VM and I'm getting a crash when launching it. We figured out the problem is in the function here : https://github.com/FrictionalGames/OALWrapper/blob/master/sources/OAL_Device.cpp#L77

Here is the gdb infos while launching the game :

Starting program: /home/vigadeomes/.local/share/Steam/steamapps/common/Penumbra Black Plague/blackplague.bin
Attempt 2: Couldn't connect to socket.
Attempt 3: Couldn't connect to socket.
Attempt 4: Couldn't connect to socket.
Attempt 5: Couldn't connect to socket.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Attempt 6: Couldn't connect to socket.
Attempt 7: Connected.
[libTAS f:0] Thread 2385 (main) ERROR: Could not import sdl dynapi symbol SDL_GetDisplayDPI
[libTAS f:0] Thread 2385 (main) ERROR: Could not import sdl dynapi symbol SDL_GetDisplayUsableBounds
[New Thread 0xf6cdeb40 (LWP 2389)]
[New Thread 0xf1b6fb40 (LWP 2390)]
[New Thread 0xf11ffb40 (LWP 2391)]
[New Thread 0xf07ffb40 (LWP 2392)]
[New Thread 0xefdffb40 (LWP 2393)]
[New Thread 0xef3ffb40 (LWP 2394)]
[New Thread 0xee9ffb40 (LWP 2395)]
[New Thread 0xedfffb40 (LWP 2396)]
[New Thread 0xed5feb40 (LWP 2397)]
[libTAS f:0] Thread 2385 (main) OpenGL vendor: VMware, Inc.
[libTAS f:0] Thread 2385 (main) OpenGL renderer: llvmpipe (LLVM 7.0, 128 bits)
[libTAS f:0] Thread 2385 (main) Start mixing about 735 samples
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alcOpenDevice call.
[libTAS f:1] Thread 2385 (main) alcIsExtensionPresent call.
[libTAS f:1] Thread 2385 (main) Extension asked is ALC_EXT_CAPTURE
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcIsExtensionPresent call.
[libTAS f:1] Thread 2385 (main) Extension asked is ALC_EXT_EFX
[libTAS f:1] Thread 2385 (main) ERROR: Extension ALC_EXT_EFX not supported, but we will still return yes because some games crash if we return no
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcIsExtensionPresent call.
[libTAS f:1] Thread 2385 (main) Extension asked is ALC_ENUMERATION_EXT
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcIsExtensionPresent call.
[libTAS f:1] Thread 2385 (main) Extension asked is ALC_ENUMERATE_ALL_EXT
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcCreateContext call.
[libTAS f:1] Thread 2385 (main) Attribute 4103 is 44100
[libTAS f:1] Thread 2385 (main) Attribute 4112 is 256
[libTAS f:1] Thread 2385 (main) Attribute 4113 is 0
[libTAS f:1] Thread 2385 (main) Attribute 131075 is 4
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcMakeContextCurrent call.
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcGetContextsDevice call.
[libTAS f:1] Thread 2385 (main) alcGetError call.
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname AL_EXT_OFFSET
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname AL_EXT_LINEAR_DISTANCE
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname AL_EXT_EXPONENT_DISTANCE
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname EAX
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname EAX2.0
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname EAX3.0
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname EAX4.0
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname EAX5.0
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alIsExtensionPresent call with extname EAX-RAM
[libTAS f:1] Thread 2385 (main) alGetError call, returning 0
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcGetContextsDevice call.
[libTAS f:1] Thread 2385 (main) alcGetError call.
[libTAS f:1] Thread 2385 (main) alcIsExtensionPresent call.
[libTAS f:1] Thread 2385 (main) Extension asked is ALC_ENUMERATION_EXT
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcGetContextsDevice call.
[libTAS f:1] Thread 2385 (main) alcGetError call.
[libTAS f:1] Thread 2385 (main) alcIsExtensionPresent call.
[libTAS f:1] Thread 2385 (main) Extension asked is ALC_ENUMERATE_ALL_EXT
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcGetContextsDevice call.
[libTAS f:1] Thread 2385 (main) alcGetError call.
[libTAS f:1] Thread 2385 (main) alcGetString call with param 4115
[libTAS f:1] Thread 2385 (main) Request list of available all devices
[libTAS f:1] Thread 2385 (main) alcGetString call with param 4101
[libTAS f:1] Thread 2385 (main) Request current device
[libTAS f:1] Thread 2385 (main) alcGetCurrentContext call.
[libTAS f:1] Thread 2385 (main) alcGetContextsDevice call.
[libTAS f:1] Thread 2385 (main) alcGetError call.

Thread 1 "blackplague.bin" received signal SIGSEGV, Segmentation fault.
__strlen_sse2_bsf () at ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S:50
50 ../sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: No such file or directory.

Error: /home/qubodup/src/git/OALWrapper/CMakeLists.txt:13:

OALWrapper$ cmake .
CMake Error: Error in cmake code at
/home/qubodup/src/git/OALWrapper/CMakeLists.txt:13:
Parse error.  Expected a command name, got unquoted argument with text "${CMAKE_CURRENT_SOURCE_DIR}/sources/*.cpp".
-- Configuring incomplete, errors occurred!

There's a ')' missing at the end of line 13 in CMakeLists.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.