GithubHelp home page GithubHelp logo

dropbear32 / foobard Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.24 MB

mirror of https://git.sr.ht/~dropbear/foobard

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.13% C++ 95.95% C 3.61% CMake 0.23% Objective-C++ 0.07%

foobard's Introduction

foobard

foobard is a program which, when combined with foo_mpris, adds MPRIS support to foobar2000 running under Wine.

foo_mpris is a foobar2000 component written in C++ which responds to commands it receives with the current state of the player (including metadata, playing/paused/stopped, etc.) or by controlling the player (play/pause, seek, etc.); these are enabled via foobar2000's SDK.

foobard is a daemon written in C99 which runs on the Linux side and sits between foo_mpris and D-Bus, translating the commands it receives over D-Bus into commands for foo_mpris. foobard uses sd-bus for the actual D-Bus interfacing.

Communication is via Unix socket, and packets are encoded in UBJSON.

Note: Upstream Wine does not currently support Unix sockets. I have submitted a merge request implementing support for them.

Building

To build foobard, you must have a C compiler, GNU make, and libsystemd installed. I'm pretty sure it's possible to have libsystemd on other init systems. Then run make, which will give you a binary at build/foobard.

To build foo_mpris, you must be on Windows (probably; I haven't tried building under Wine) and have the LLVM toolchain and MinGW installed, and LLVM must be in your MinGW path. You must also have make installed. Change directories to foo_mpris/, then run make, which will give you a DLL at ./build/foo_mpris.dll. Place this DLL at %APPDATA%\foobar2000-v2\user-components-x64\foo_mpris\. Optionally modify foo_mpris/Makefile and provide a path accurate to your system in the install recipe.

License

This code is licensed under the BSD 3-Clause License. A copy of this license is included in the repository. Please note that only the code under the following paths (-maxdepth 1) is under this license:

  • .
  • foo_mpris/src/
  • ubjson/

The remaining code is the foobar2000 SDK and its dependencies.

foobard's People

Watchers

Ally Sommers avatar  avatar

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.