Code Monkey home page Code Monkey logo

regorxxx / device-priority-smp Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 6.46 MB

Automate foobar2000's output without having to select devices manually every time one is disconnected/connected. Wireless, headphone, and server devices auto-switch made easy.

Home Page: https://regorxxx.github.io/foobar2000-SMP.github.io/scripts/device-priority-smp/

License: GNU Affero General Public License v3.0

JavaScript 99.96% Batchfile 0.04%
javascript foobar2000-smp-script foobar2000 foobar2000-component playlist-tools-addon

device-priority-smp's Introduction

Device-Priority-SMP

version CodeFactor CodacyBadge GitHub
Spider Monkey Panel Script for foobar2000, built within a button. Automate foobar2000's output without having to select devices manually every time one is disconnected/connected. Wireless, headphone, and server devices auto-switch made easy.

Auto-device

Features

  • Export Device List: after connecting all devices desired to be used at some point, the list can be exported to be able to set them at a later point as prioritized devices (even if they are not connected).
  • 1-5 slots for prioritized devices: set the order in which the devices must be set as output. Device 1 would be used (if available) before Device 2 and so on...
  • Server friendly: some wireless devices pause playback when they are disconnected, thus requiring to manually start playback again even if the device has been changed (manually or automatically). The script checks if playback is paused after swapping devices and will continue it automatically in those cases for a seamless change between devices when you switch them off/on.
  • Bypass device errors: in case something goes wrong switching devices (for ex. ASIO initialization errors which are not uncommon), Foobar2000 usually stops playback. The script checks if playback is stopped after swapping devices and will continue it automatically at the cached playback time.
  • Automatic volume output: a volume output value can be associated to a device, thus setting Foobar2000's volume to your desired setting whenever it's conneceted to a device. For ex. to make sure Foobar2000 is at max volume whenever a blueetoth device is used.
  • Toolbar: the button can be loaded within a toolbar or as an independent button. It's fully compatible with my other scripts which also use a toolbar (see at bottom), so the button can be simply merged with your already existing toolbar panel easily.

Compatible with (toolbar)

  1. Search-by-Distance-SMP: creates intelligent "spotify-like" playlist using high-level data from tracks and computing their similarity using genres/styles.
  2. Playlist-Tools-SMP: Offers different pre-defefined examples for intelligent playlist creation.
  3. ListenBrainz-SMP: Integrates Listenbrainz's feedback and recommendations.
  4. Autobackup-SMP: Automatic saving and backup of configuration and other data in foobar2000.

Auto-device2

Installation

See _TIPS and INSTALLATION (txt) and the Wiki. Not properly following the installation instructions will result in scripts not working as intended. Please don't report errors before checking this.

device-priority-smp's People

Contributors

imgbotapp avatar regorxxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

gaybro8777

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.