Blob


1 # amused
3 amused is a music player. It doesn't have any amazing features
4 built-in, on the contrary: it's quite minimal (a fancy word to say
5 that does very little.) It composes well, or aims to do so, with
6 other tools though.
8 The main feature is that audio decoding runs in a sandboxed process
9 under `pledge("stdio recvfd audio")` (on OpenBSD at least.)
11 It's available on the OpenBSD port tree starting from 7.1
14 ## Building
16 The dependencies are:
18 - flac
19 - libmpg123
20 - libvorbis
21 - opusfile
22 - libsndio or libasound (ALSA)
24 Then, to build:
26 $ ./configure
27 $ make
28 # make install # eventually
30 The build can be customized by passing arguments to the configure
31 script or by using a `configure.local` file; see `./configure -h`
32 and [`configure.local.example`](configure.local.example) for more
33 information.
35 For each library the `configure` script first tries to see if they're
36 available without any extra flags, then tries again with some
37 hard-coded flags (e.g. `-lflac` for flac) and finally resorts to
38 pkg-config if available. pkg-config auto-detection can be disable by
39 passing `PKG_CONFIG=false` (or the empty string)
41 For Linux users with libbsd installed, the configure script can be
42 instructed to use libbsd exclusively as follows:
44 $ CFLAGS="$(pkg-config --cflags libbsd-overlay)" \
45 ./configure LDFLAGS="$(pkg-config --libs libbsd-overlay)"
47 To force the use of one specific audio backend and not simply the first
48 one found, pass `--backend` as:
50 $ ./configure --backend=alsa # or sndio
53 ## Usage
55 The fine man page has all nitty gritty details, but the TL;DR is
57 - enqueue music with `amused add files...` or `amused load <playlist`
58 - control the playback with `amused play|pause|toggle|stop`
59 - check the status with `amused status` and the current playlist with
60 `amused show`
62 amused tries to be usable in composition with other more familiar tools
63 instead of providing everything itself. For instance, there isn't a
64 command to remove an item from the playlist, or shuffle it; instead,
65 standard UNIX tools can be used:
67 $ amused show | grep -vi kobayashi | amused load
68 $ amused show | sort -R | amused load
69 $ amused show | sort | uniq | amused load
71 It also doesn't provide any means to manage a music collection. It
72 plays nice with find(1) however:
74 $ find . | amused load
76 Non-music files found in the playlist are automatically skipped and
77 removed, so there's no harm in loading everything under a certain
78 directory.
80 I wrote a bit more about the background of amused [in a blog
81 post](https://www.omarpolo.com/post/amused.html).