Search found 1127 matches

by max
September 11th, 2020, 11:46 am
Forum: Help
Topic: How to use a pulseaudio server in a certain port?
Replies: 2
Views: 1171

Re: How to use a pulseaudio server in a certain port?

says the `name` directive should correspond to the name the pulse server uses internally. What does that mean? No, it doesn't say that. It says "Some plugins also use it internally, e.g. as a name registered in the PULSE server." This means that the PulseAudio output plugin transfers this name to t...
by max
September 8th, 2020, 12:45 pm
Forum: Developers' Corner
Topic: Socket monitoring, event loop and non blocking io
Replies: 1
Views: 1222

Re: Socket monitoring, event loop and non blocking io

Derive from `class SocketMonitor`: https://github.com/MusicPlayerDaemon/MP ... onitor.hxx
... and implement the virtual method `OnSocketReady()`.
Call `Schedule*()` to start polling for events, and `Cancel()` to stop polling.
by max
August 31st, 2020, 11:54 am
Forum: Developers' Corner
Topic: Format of Response to "list"
Replies: 12
Views: 896

Re: Format of Response to "list"

Example, old and bugged (indentation added for readability): Album: Brave New World Artist: Styx Artist: Iron Maiden Date: 2000 Date: 1999 The top level is "Album" (i.e. grouped by "Album", which is contrary to what you requested), followed by a list of all artists, followed by a list of all dates. ...
by max
August 31st, 2020, 11:48 am
Forum: Developers' Corner
Topic: Format of Response to "list"
Replies: 12
Views: 896

Re: Format of Response to "list"

The date doesn't belong to an artist, it belongs to an album. I don't think that's correct. There can be multiple artists for one album because multiple artists can publish albums under the same name, and then those distinct albums have different dates. For example, Styx have released the album "Br...
by max
August 31st, 2020, 11:05 am
Forum: Developers' Corner
Topic: Format of Response to "list"
Replies: 12
Views: 896

Re: Format of Response to "list"

And how do you know which Date value belongs to which Artist?
by max
August 31st, 2020, 9:43 am
Forum: Developers' Corner
Topic: Format of Response to "list"
Replies: 12
Views: 896

Re: Format of Response to "list"

I have no idea how you did it previously, because as I said, the response did not make sense and did not do what was documented. Why do you believe the "new format" is "harder to handle"? (Note, it's not the "new format" - it's the old format, the one that has always been documented.) What's really ...
by max
August 31st, 2020, 7:22 am
Forum: Developers' Corner
Topic: Format of Response to "list"
Replies: 12
Views: 896

Re: Format of Response to "list"

The original "group" implementation was bugged; it did not work as documented, and the way it worked, it did not make any sense. Therefore, it was fixed in MPD 0.20.22 two years ago, to follow the documentation.
by max
August 24th, 2020, 9:49 am
Forum: Developers' Corner
Topic: Integrate NAD python api as virtual mixer
Replies: 3
Views: 484

Re: Integrate NAD python api as virtual mixer

You need a tiny client which listens for "mixer" events and then reads the volume level from MPD, transmits it to your amplifier, and gets back to waiting for more "mixer" events.
by max
August 23rd, 2020, 4:53 pm
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1440

Re: Fix intermittent stream interruptions with high CPU usage

So this was all about hardware which was too slow for the configuration you chose.
by max
August 23rd, 2020, 3:31 pm
Forum: General Discussion
Topic: Software sound equalizer?
Replies: 1
Views: 577

Re: Software sound equalizer?

MPD has no such plugin, because nobody was interested in writing one. But it would be possible to write one.
by max
August 23rd, 2020, 3:30 pm
Forum: Developers' Corner
Topic: Integrate NAD python api as virtual mixer
Replies: 3
Views: 484

Re: Integrate NAD python api as virtual mixer

There is a way, but you need to write a dedicated client for bridging between MPD's null mixer and your amplifier.
by max
August 21st, 2020, 11:19 am
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1440

Re: Fix intermittent stream interruptions with high CPU usage

Because the configuration sample is wrong. It doesn't disable resampling, because it is not possible to disable resampling. The option "enabled" does not exist in the "resampler" block. See https://www.musicpd.org/doc/html/plugin ... er-plugins
by max
August 20th, 2020, 10:06 am
Forum: Help
Topic: exception: Input plugin 'ffmpeg' is unavailable: No protocol
Replies: 2
Views: 346

Re: exception: Input plugin 'ffmpeg' is unavailable: No protocol

Obey the message: it is about the FFmpeg input plugin, but you tried to disable the FFmpeg decoder plugin.
by max
August 19th, 2020, 2:21 pm
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1440

Re: Fix intermittent stream interruptions with high CPU usage

Randomly playing around with settings seems more like a playful waste of time than productive problem solving.
by max
August 19th, 2020, 10:25 am
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1440

Re: Fix intermittent stream interruptions with high CPU usage

A lower bit rate will not reduce the CPU load for resampling.
by max
August 19th, 2020, 9:48 am
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1440

Re: Fix intermittent stream interruptions with high CPU usage

Nearly all CPU time is spent on resampling. Since I don't have any information about your setup, I can't give any help here. Read https://www.musicpd.org/help/ if you need more help. But what I can say: renicing the process will not solve the problem. If MPD doesn't compete with other processes for ...
by max
August 19th, 2020, 7:42 am
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1440

Re: Fix intermittent stream interruptions with high CPU usage

Looks like you deleted the file /etc/default/mpd which is part of the package. You need to restore it.
by max
August 19th, 2020, 7:12 am
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1440

Re: Fix intermittent stream interruptions with high CPU usage

Your MPD version is 21 bug-fix releases behind. First you should update. If this still happens, post a "perf report" of this high CPU usage.
by max
August 10th, 2020, 12:03 pm
Forum: Help
Topic: adding and playing a song in one step
Replies: 2
Views: 398

Re: adding and playing a song in one step

You can use "addid" which returns the song id of the new queue item, and then use "playid" to play that one.
by max
July 27th, 2020, 6:23 pm
Forum: Developers' Corner
Topic: cannot add rtsp audio stream
Replies: 4
Views: 601

Re: cannot add rtsp audio stream

This error you're seeing is a FFmpeg error. But I don't know why the FFmpeg library fails, while the "ffmpeg" command-line tool does not.