Code Monkey home page Code Monkey logo

Comments (4)

qwertychouskie avatar qwertychouskie commented on September 4, 2024 1

I believe it's an OpenAL limitation, though a warning message in the terminal would probably be a good idea.

from stk-code.

qwertychouskie avatar qwertychouskie commented on September 4, 2024

Roll-off (and positional audio in general) requires that the source sound file be mono, stereo sources will cause the described behavior.

from stk-code.

3risian avatar 3risian commented on September 4, 2024

Confirmed that making the audio file mono will enable roll-off. Thanks!
I understand why a stereo positional sound is strange, although I still think this issue should remain open do discuss if the way the engine handles it is appropriate (I'd propose playing no sound and giving a console error, instead of quietly failing positional/roll-off) and adding this to documentation (and the Blender export tools tooltips) so new artists aren't confused like I was. (edit: it's briefly mentioned on the SFX Guidelines page, but not the Special Effects page that discusses the sound emitter options)

I can draft and commit the documentation changes in the other repos, thoughts on the engine handling would be appreciated.

from stk-code.

Alayan-stk-2 avatar Alayan-stk-2 commented on September 4, 2024

The game will now print in the console an error message such as:

[error ] SFXBuffer: Positional audio is not supported with stereo files, but path/to/audio.ogg is stereo

from stk-code.

Related Issues (20)

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.