LINUX.ORG.RU

MPD & remote Pulseaudio - Paused state.

 , , , ,


0

2

Настроил удалённый MPD по этомц гайду - https://wiki.archlinux.org/title/Music_Player_Daemon/Tips_and_tricks#Remote. Настроил давно, всё работало. Но последние недели 2-3 не использовал MPD и его клиентов для прослушивания музыки. А сегодня решил заслушать, но при нажатии на проигрывании, получаю Paused.

На компе, где крутится mpd.

.config/mpd/mpd.conf
-----------------------------
music_directory                 "/home/user/.config/mpd/music"
#
playlist_directory              "/home/user/.config/mpd/playlists"
#
db_file                         "/home/user/.config/mpd/database"
# 
log_file                        "/var/log/mpd/mpd.log"
#
pid_file                        "/run/mpd/mpd_pid"
#
state_file                      "/home/user/.config/mpd/mpd_state"
#
sticker_file                    "/home/user/.config/mpd/mpd_sticker.sql"
#
user                            "user"
#
group                           "user"
#
bind_to_address                 "192.168.1.9"
#
bind_to_address                 "/home/user/.config/mpd/mpd_socket"
#
port                            "6613"
#
auto_update                     "yes"
#
follow_outside_symlinks         "yes"
##
follow_inside_symlinks          "yes"
#
default_permissions             "read,add,control,admin"
#
audio_output {
        type            "pulse"
        name            "mpd"
        server          "192.168.1.11"
        format          "*:24:2"
        mixer_type      "hardware"
        enabled         "yes"
}
#
#audio_output {
#       type            "httpd"
#       name            "My_MPD_Stream"
#       encoder         "vorbis"
#       port            "8017"
#       bind_to_address "0.0.0.0"
#       quality         "10"
#       format          "44100:24:2"
#       max_clients     "7"
#       tags            "yes"
#       mixer_type      "hardware"
#       enabled         "yes"
#       always_on       "yes"
#}
#
volume_normalization            "no"
#
filesystem_charset              "UTF-8"
#
/etc/pulse/default.pa
----------------------------
load-module module-native-protocol-tcp auth-ip-acl=192.168.1.11

На компе, где запускаются клиенты.

.config/pipewire/pipewire-pulse.conf
pulse.properties = {
    # the addresses this server listens on
    server.address = [
        "unix:native"
        #"unix:/tmp/something"              # absolute paths may be used
        "tcp:4713"                          # IPv4 and IPv6 on all addresses
        #"tcp:[::]:9999"                    # IPv6 on all addresses
        #"tcp:192.168.1.9:8888"             # IPv4 on a single address
        #
        #{ address = "tcp:4713"             # address
        #  max-clients = 64                 # maximum number of clients
        #  listen-backlog = 32              # backlog in the server listen queue
        #  client.access = "restricted"     # permissions for clients
        #}
    ]
    #server.dbus-name       = "org.pulseaudio.Server"
    #pulse.allow-module-loading = true
    #pulse.min.req          = 128/48000     # 2.7ms
    #pulse.default.req      = 960/48000     # 20 milliseconds
    #pulse.min.frag         = 128/48000     # 2.7ms
    #pulse.default.frag     = 96000/48000   # 2 seconds
    #pulse.default.tlength  = 96000/48000   # 2 seconds
    #pulse.min.quantum      = 128/48000     # 2.7ms
    #pulse.idle.timeout     = 0             # don't pause after underruns
    #pulse.default.format   = F32
    #pulse.default.position = [ FL FR ]
}



Последнее исправление: Ololo_Trololo (всего исправлений: 1)
Ответ на: комментарий от James_Holden

А ip адреса точно не поменялись за это время?

Точно, т.к. клиент видит сервер.

И может в логе mpd что-то видно.

Видно.

2025-04-10T22:49:02 exception: Unsupported URI scheme
2025-04-10T22:49:04 exception: Failed to open "mpd" (pulse); failed to connect: Connection refused
2025-04-10T22:49:04 exception: Failed to open "mpd" (pulse); failed to connect: Connection refused

Только чё за фигня-то?

Ololo_Trololo
() автор топика