How do you use partitions in Music Player Daemon (MPD) #2180
Unanswered
buguser1234
asked this question in
Q&A
Replies: 1 comment
-
I think you're looking at MPD 0.24 documentation but you're using MPD 0.23. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use partitions in MPD (version (0.23.15-1~bpo12+1)) but get "unrecognized parameter" errors. Using client.newpartition in python also does not work although it shows there is a default partion. Is this functionality implemented in MPD or is this a future feature as I can not find any documentation or examples etc? Why do I get these errors?
From the MPD manual: Example for specifying an additional partition in the configuration file:
partition {
name "foo"
}
exception: Error in /etc/mpd_lounge.conf line 4; unrecognized parameter: partition mpd_lounge.service: Main process exited, code=exited, status=1/FAILURE mpd_lounge.service: Failed with result 'exit-code'.
Another example:
Partitions Configuration
partition {
name "partition1"
description "Main playback zone"
enabled "yes"
audio_output {
type "fifo"
name "FIFO Pipe Lounge"
path "/tmp/snap_lounge"
format "44100:16:2"
mixer_type "software"
}
}
exception: Error in /etc/mpd_lounge.conf line 269; unrecognized parameter: Partition mpd_lounge.service: Main process exited, code=exited, status=1/FAILURE mpd_lounge.service: Failed with result 'exit-code'.
Usage in python script:
List existing partitions
partitions = client.listpartitions()
print("Existing Partitions:", partitions)
client.newpartition(lounge)
List partitions again to confirm
partitions = client.listpartitions()
print("Partitions After Switch:", partitions)
Result:
Existing Partitions: [{'partition': 'default'}] Error: name 'lounge' is not defined
Beta Was this translation helpful? Give feedback.
All reactions