This provides a command line interface to control MiniDSP devices.
It's a complete rewrite from node-minidsp
and aims to support multiple devices. Feel free to open an issue if you have access to other hardware!
shell
cargo install minidsp
```shell USAGE: minidsp [OPTIONS] [SUBCOMMAND]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
--tcp
SUBCOMMANDS:
config Set the current active configuration,
debug Low-level debug utilities
gain Set the master output gain [-127, 0]
help Prints this message or the help of the given subcommand(s)
input Control settings regarding input channels
mute Set the master mute status
output Control settings regarding output channels
probe Try to find reachable devices
server Launch a server usable with --tcp
, the mobile application, and the official
client
source Set the active input sourcee
```
shell
$ minidsp
MasterStatus { preset: 0, source: Toslink, volume: Gain(-36.5), mute: false }
Input levels: -131.4, -131.4
Output levels: -168.0, -168.0, -120.0, -120.0
Commands are organized in different categories:
```shell
minidsp source toslink
minidsp gain -- -30
minidsp config 1
```
minidsp input
For more details, look at minidsp input --help
```shell
minidsp input 0 gain -- -10
minidsp input 0 mute on
minidsp input 0 routing 0 enable on minidsp input 0 routing 0 gain 6
minidsp input 1 peq 0 bypass on ````
```shell
minidsp output
For more details, look at minidsp output --help
```Examples
```shell
minidsp output 0 delay 0.10
minidsp output 1 mute on
minidsp output 1 invert on
minidsp input 1 peq 0 bypass on
```
In order to run as a non-privileged user under Linux, you may have to add a udev rule for this specific device. Under /etc/udev/rules.d
, create a file named 99-minidsp.rules
containing:
```
ATTR{idVendor}=="2752", ATTR{idProduct}=="0011", MODE="660", GROUP="plugdev" ```
Then reload using:
sudo udevadm control --reload-rules