| 1 | # Sample DisOrder config file |
| 2 | # |
| 3 | # You WILL need to edit this from the distributed version! |
| 4 | |
| 5 | # Player programs |
| 6 | # |
| 7 | # You can add new players for other formats. For gapless and network |
| 8 | # play to work, you will need a player that can use libao and DisOrder's |
| 9 | # special driver - see "LIBAO driver" in disorder_config(5) |
| 10 | player *.mp3 execraw disorder-decode |
| 11 | player *.ogg execraw disorder-decode |
| 12 | player *.wav execraw disorder-decode |
| 13 | player *.flac execraw disorder-decode |
| 14 | |
| 15 | # Track length calculators |
| 16 | # |
| 17 | # If you add new formats then can add a plugin module to calculate the |
| 18 | # length of a track. See disorder(3) for the interface. |
| 19 | tracklength *.mp3 disorder-tracklength |
| 20 | tracklength *.ogg disorder-tracklength |
| 21 | tracklength *.wav disorder-tracklength |
| 22 | tracklength *.flac disorder-tracklength |
| 23 | |
| 24 | # Use the fs module to list files under /export/mp3. The encoding |
| 25 | # is ISO-8859-1. |
| 26 | collection fs ISO-8859-1 /export/mp3 |
| 27 | |
| 28 | # Don't leave a gap between tracks. |
| 29 | gap 0 |
| 30 | |
| 31 | # Scratch tracks. You can add your own tracks here. |
| 32 | scratch pkgdatadir/slap.ogg |
| 33 | scratch pkgdatadir/scratch.ogg |
| 34 | |
| 35 | # Trust the web user and root. Trusted users can stop the server or |
| 36 | # pretend to be other users. |
| 37 | # |
| 38 | # This line can be removed after upgrade to 2.1 or later, or if the initial |
| 39 | # install is of 2.1 or later. |
| 40 | trust www-data root |
| 41 | |
| 42 | # Run as user jukebox. This must exist in /etc/passwd! |
| 43 | user jukebox |
| 44 | |
| 45 | # Volume control settings. |
| 46 | # The device name to use |
| 47 | mixer /dev/mixer |
| 48 | # The channel to control |
| 49 | channel pcm |