GithubHelp home page GithubHelp logo

Comments (5)

barsoosayque avatar barsoosayque commented on July 21, 2024 1

I would just include this repo in the main project and declare dependency on it. Basically just:

// settings.gradle.kts
include(":app")
include(":libgdx-oboe")
project(":libgdx-oboe").projectDir = file("/path/to/cloned/library")

// build.gradle.kts
dependenices {
    implementations(":libgdx-oboe")
}

Something like that. Hopefully this even works (note that this is in Kotlin DSL). See this SO answer.

As for iOS, I honestly have no idea. I would assume audio is better on apple devices, if that's not the case, I'm not aware of anything that could help, sorry. It is possible to port this library, but it would require a lot of work: a substitute for oboe audio backend (since it's only for android), crosscompile ffmpeg libraries using apple toolchain, write a bridge between native code and apple code (I even don't know in what language it's written, something like objective c or swift even ?). But even then, I don't own any apple devices, so I couldn't even work on that if I wanted to.

from libgdx-oboe.

barsoosayque avatar barsoosayque commented on July 21, 2024

I.. don't have a jitpack subscription, so I'm not surprised it didn't work. As for now, there is no way to just get it, there is no place where you can download build artifacts (since I couldn't find any oss maven repo which wouldn't be a big pain to update to). Feel free to suggest services that support maven artifacts for github repositories for free !

The only way to use this library in your projects, is to clone the repository and use it as a local dependency. In this case, you would need to set up NDK in Android Studio or in any other environment that you are using. I'll update the "using" doc with more info.

Unless I misunderstood your particular usecase, this is duplicate of #10. If I did, please, add more info. Otherwise I will close it after I update docs.

from libgdx-oboe.

HAL9000Thomas avatar HAL9000Thomas commented on July 21, 2024

Yes, you understood my particular usecase. Just didn't got it how to add this to my project. Will follow your mentioned way by cloning it. Thank you!

from libgdx-oboe.

medieninformatik avatar medieninformatik commented on July 21, 2024

@barsoosayque sry to ask you again. should that local dependency be provided as a jar file? if so, which class should i select as main class?

another question: do you know any strategy or tool when "Why is my libGDX app music is so broken ?" applies to iOS too?

from libgdx-oboe.

HAL9000Thomas avatar HAL9000Thomas commented on July 21, 2024

Thank you for the provided snippet. Much appreciated. Was able to declare it as dependency, but ran into few issues regarding cmake. Guess its related to version mismatch since I use different gradle and java version in my project. Will try to fix that next week.

Regarding iOS, yes audio is much better there compared to default Android. Got things working when switching from libGDX Music class to Sound class (with few drawbacks of course).

from libgdx-oboe.

Related Issues (18)

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.