Coder Social home page Coder Social logo

ultrasn0w / foo_drpc Goto Github PK

View Code? Open in Web Editor NEW
87.0 6.0 9.0 231 KB

Foobar2000 music status for Discord Rich Presence!

License: MIT License

C++ 89.04% C 10.96%
drpc discord-rpc discord foo-drpc foobar2000 foobar music status rich-presence component dll nowplaying

foo_drpc's Introduction

foo_drpc

Foobar2000 music status for Discord Rich Presence!

Notice

I'm currently no longer actively developing this, but will still merge PRs and reference releases at the release page.

You mabe also want to check out this wonderful alternative that was updated much more recently.

How to use

  1. Grab release, drop included foo_drpc directory in %userdir%\AppData\Roaming\foobar2000\user-components\ (if you have not moved your AppData somewhere else) or place included .dll Files in \foobar2000\components.
  2. Add foobar2000 to discords detected games (Settings -> Games -> Add it).

compact view big view 1 big view 2

How to compile

  1. Compiled with VS 2017.
  2. Grab foobar2000 SDK and create \foo_drpc\ directory in \foobar2000.
  3. Drop contents from repository in the prevoiusly created \foo_drpc.
  4. Grab release from https://github.com/discordapp/discord-rpc and place \lib\ with contained discord-rpc.lib in \foo_drpc.
  5. Do the same with \include\discord-rpc.h but this time directly into \foo_drpc.
  6. Get/Create a Discord Application ID which resembles your App at Discords end and fill in APPLICATION_ID in \foo_drpc\secret.h.
  7. Upload 1 large asset for your App with the key "logo", 3 small ones with keys "play", "stop" and "pause". Use the files in optional_images if you like.

License and Warranty

Check LICENSE.

foo_drpc's People

Contributors

jmckinstry avatar ultrasn0w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

foo_drpc's Issues

Not a valid Win32 application.

When installing "foo_drpc.dll" into /components with "discord-rpc.dll" and "send-presence.exe" into /foobar2000, foobar2000 tells me:

Failed to load DLL: foo_drpc.dll
Reason: Not a valid Win32 application.

foobar2000 v1.3.16

Update:
I had to use the win32-dynamic\bin even though I'm on a 64 bit install. Working well now!

Delay/Wrong song name when manually selecting tracks?

Neat plugin, I'm really digging it. Just a couple small things I notice is there seems to be a delay sometimes from when Discord shows it from paused and listening status on a track. Also, whenever I am playing a song and manually select another song, or skip a couple tracks, it will sorta get stuck on a previous track that isn't the current one until I go in and fiddle with it by stopping the song, and replaying it.

Song metadata delayed after skipping.

First of all, I want to let you know that this is the best thing I've found in a while, and thank you for making it :)

Now on to the "bug"

  • Turn on everything, song data are appearing as normal.
  • After listening to like a minute or two, I skipped to the next song.
  • The next song is played, but the metadata got stuck on the skipped song.
  • I finished or skip another song, the metadata changed to the previous song.

For example, if I'm listening to song A, then I skipped to song B, the displayed song is still song A, then after I skip or song B ends, song C play but song B get displayed. This continues until I stopped, then the metadata is corrected.

Some information:

  • foo_drpc v 0.3
  • foobar2000 v 1.3.16, and I'm playing in shuffle (tracks) mode
  • Discord latest build (idk where to check for its version, but the changelog show Mar 7)

Feel free to let me know if you need additional logs, files, or if I'm messing something up :)

Still, thank you for the work, it still works fine when I'm not skipping songs XD

P.S : I did check back, and this lasted throughout the songs (2-3 mins songs)

Says "Playing Game" instead of "Listening To"

Says "Playing a Game" when it could say "Listening to Music" or something like that. Example of what I mean here: Spotify vs foobar

As a smaller detail, the Discord sidebar says "Playing foobar2000" but with Spotify it shows "Listening to Spotify." I'm not sure if this is something you can actually change, but it'd be neat.

Windows 8.1 not working

Wait what? It works on Windows 10, but on Windows 8.1 it isn't working. ๐Ÿค”

rip ๐Ÿ˜ข

Artwork/cover showing in discord(?) + title format

is it possible to make so the foo_drpc component show the artwork/cover? (if the file ur playing have it)
instead of foobar2000 logo in discord?

maybe a option to turn that off and on for people that wants it in components preference.
(idunno if u want to do it, sound like alot of work to do. but would be a nice option to have)

if u dont want to do the thing above, is it possible to make so we can change how the songs are being showed atleast? (i dont like how it shows artist-title, i like it like "title" by artist)
if we could add our own title format script it would be nice. since i like using this:

$if($and(%artist%,%title%), "%title%" By %artist% )
$if($and(%title%,$not(%artist%)), %title% )

(and some may like to use their own)

Rich Presence doesn't update when loading foobar's playback state

First of all, thank you for this useful little utility.

The problem here is is that this tool will not update what track you're playing as long as the option "Save playback state when closing foobar2000 and resume on next startup" is enabled within foobar. (Preferences > Playback > Other).
It'll fix itself when you fully stop and start playback again.

Listening status

Hey,

First of all great job!

So, yo'll change from "playing" to "listening" status? (type 3 iirc)

Another thing, any way to change "foobar_drpc" to the actual song?

Cheers!

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.