Giter Site home page Giter Site logo

Comments (7)

dotkitkat avatar dotkitkat commented on July 20, 2024 1

Master branch not working on macOS 10.12.2 Sierra, the System.getProperty check must not be finding macOS. Commenting out that entire line (including setAudioSendFactory) and then re-building works (now playing music 🎶 ).

Edit: Found out the reason why, macOS os.arch is x86_64. Adding a x86_64 check with get rid of the native player for Windows clients too. Would an os.name check (currently Mac OS X on my local MacBook) work?

Edit 2: PR'ing os.name check for Mac OS X to development

Other than that, loving this sweet bot! 👍

from archived-bot.

suiginn avatar suiginn commented on July 20, 2024

Currently we have confirmed the following errors.

Exception in thread "JDA AudioConnection Guild: 268663931692777486 Ready Thread" java.lang.UnsatisfiedLinkError: Required library at /natives/darwin/libudpqueue.dylib was not found
At com.sedmelluq.discord.lavaplayer.natives.NativeLibLoader.extractLibrary (NativeLibLoader.java: 93)
At com.sedmelluq.discord.lavaplayer.natives.NativeLibLoader.load (NativeLibLoader.java: 77)
At com.sedmelluq.discord.lavaplayer.udpqueue.natives.UdpQueueManagerLibrary.getInstance (UdpQueueManagerLibrary.java: 13)
At com.sedmelluq.discord.lavaplayer.udpqueue.natives.UdpQueueManager. (UdpQueueManager.java: 26)
At com.sedmelluq.discord.lavaplayer.jdaudp.NativeAudioSendFactory.initialiseQueueManager (NativeAudioSendFactory.java: 31)
At com.sedmelluq.discord.lavaplayer.jdaudp.NativeAudioSendFactory.addInstance (NativeAudioSendFactory.java: 58)
At com.sedmelluq.discord.lavaplayer.jdaudp.NativeAudioSendSystem.start (NativeAudioSendSystem.java: 22)
At net.dv8tion.jda.core.audio.AudioConnection.setupSendSystem (AudioConnection.java: 225)
At net.dv8tion.jda.core.audio.AudioConnection.access $ 200 (AudioConnection.java: 47)
At net.dv8tion.jda.core.audio.AudioConnection $ 1.run (AudioConnection.java: 123)

from archived-bot.

freyacodes avatar freyacodes commented on July 20, 2024

It looks like you are trying to host FredBoat on a Mac. FredBoat depends on https://github.com/sedmelluq/lavaplayer to play music, which does not seem to support Darwin (the OSX kernel).

This normally wouldn't be a problem for a Java library, but this library isn't pure Java.

from archived-bot.

sedmelluq avatar sedmelluq commented on July 20, 2024

LavaPlayer itself works on OS X, but the native audio packet send system doesn't. Remove .setAudioSendFactory(new NativeAudioSendFactory()) part in FredBoatBot class if you want to run it on OS X.

from archived-bot.

freyacodes avatar freyacodes commented on July 20, 2024

Thanks for clarifying Sed. I thought lavaplayer itself didn't support darwin.

When running on arm architecture we have a special case to disable NAS, I should simply patch this to also check for darwin.

I will do this later as I am very busy right now.

from archived-bot.

knight-ryu12 avatar knight-ryu12 commented on July 20, 2024

if(!System.getProperty("os.arch").equalsIgnoreCase("darwin")) { builder.setAudioSendFactory(new NativeAudioSendFactory()); }
will work, insert into development branch, at FredBoatBot.java L66
Let me know if it worked.

from archived-bot.

freyacodes avatar freyacodes commented on July 20, 2024

This issue should now be fixed. Compile from the development branch to get the fix.

from archived-bot.

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.