Giter VIP home page Giter VIP logo

Comments (8)

mackron avatar mackron commented on August 28, 2024

How are you defining MAL_NO_OPENAL? I took a quick look over the code but couldn't see any obvious issues with it (my Android Studio is uninstalled at this very moment so can't test just yet).

I'm wondering if it's even worth the maintenance cost of supporting OpenAL on Android since I've already got the OpenSL|ES backend implemented...

Update: I got it compiling with Android Studio and I'm not able to reproduce. Any other info you could provide to help me reproduce this?

from miniaudio.

raysan5 avatar raysan5 commented on August 28, 2024

Hi @mackron!

How are you defining MAL_NO_OPENAL?

Just #define MAL_NO_OPENAL before #include "mini_al.h".

I'm wondering if it's even worth the maintenance cost of supporting OpenAL on Android since I've already got the OpenSL|ES backend implemented...

In my opinion, doesn't worth maintaining it. Actually, I feel mini_al should be a replacement for OpenAL, not a layer over it. I can understand that some platforms are not yet fully supported by mini_al and so the OpenAL backend... but in the long term I'd remove that backend. Just my personal opinion. Also thinking the same about SDL, as said, mini_al operates at a lower level, directly with "standard" audio libraries for each platform.

from miniaudio.

r-lyeh-archived avatar r-lyeh-archived commented on August 28, 2024

I find cute that the library is able to operate not only on low-level OS layer but also on high-level OAL/SDL2 layers too. More freedom for the final developer IMHO.

from miniaudio.

mackron avatar mackron commented on August 28, 2024

You need to define MAL_NO_OPENAL before the implementation of mini_al - is that how you're doing it? In any case, I've made a change that now excludes OpenAL if the compiler can't find the headers, but it depends on compiler support. That will be in the dev branch soon.

The original intent for OpenAL was to act as a fallback for platforms that I haven't yet got around to fully supporting, such as Mac. I'll keep it around for now but will reassess when the Core Audio backend for macOS and iOS is implemented.

from miniaudio.

raysan5 avatar raysan5 commented on August 28, 2024

You need to define MAL_NO_OPENAL before the implementation of mini_al - is that how you're doing it?

Yeah, actually it's what I'm doing... don't know, maybe I mixed some code... I'll try it again more carefully.

The original intent for OpenAL was to act as a fallback for platforms that I haven't yet got around to fully supporting, such as Mac. I'll keep it around for now but will reassess when the Core Audio backend for macOS and iOS is implemented.

Agree.

from miniaudio.

mackron avatar mackron commented on August 28, 2024

You need to define MAL_NO_OPENAL before the implementation of mini_al - is that how you're doing it? In any case, I've made a change that now excludes OpenAL if the compiler can't find the headers, but it depends on compiler support. That will be in the dev branch soon.

This is in the dev branch now.

from miniaudio.

mackron avatar mackron commented on August 28, 2024

@raysan5 Did this change work for you? If so I'll go ahead and close this issue.

from miniaudio.

raysan5 avatar raysan5 commented on August 28, 2024

Hi @mackron! Yes, it worked! Thank you very much! 👍

from miniaudio.

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.