AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 856392
Accepted
AaronD
AaronD
Asked: 2016-12-03 20:35:13 +0800 CST2016-12-03 20:35:13 +0800 CST 2016-12-03 20:35:13 +0800 CST

MPD 似乎在播放,但没有声音

  • 772

解决这个问题后,我有第二个。根据 Gnome 音乐播放器客户端 ( gmpc),它现在似乎可以播放,但没有声音。我/etc/mpd.conf到目前为止有这个:

audio_output {
       type            "alsa"
       name            "XR18"
       device          "plughw:CARD=X18XR18,DEV=0"
       format          "48000:32:2"
       auto_resample   "no"            # make MPD resample, instead of ALSA's libasound
       auto_channels   "no"            # play a multi-track audio file on its specified channels, no remapping
       always_on       "yes"           # keep the output device open, even when not playing
       mixer_type      "software"      # don't look for a hardware mixer because this card doesn't have one (at least not from the PC side)
#       mixer_device    "default"       # optional
#       mixer_control   "PCM"           # optional
#       mixer_index     "0"             # optional
}

使用 default mixer_type "hardware",gmpc似乎已静音,并且不允许我取消静音。静音命令(Ctrl+ space,然后键入mute)执行此操作:

在此处输入图像描述

更改为mixer_type "software"让我获得 GUI 音量控制,但仍然没有声音。如果我在我的启动脚本中这样调用它,它本身是从以下位置调用的rc.local:

mpd >> "$REC_PATH/Debug.log" 2>&1 &

然后我得到这个Debug.log:

socket: Failed to bind to '[::]:6600': Address already in use

我不确定还有什么会使用它。 gmpc无论如何连接。 aplay使用第一级冗长执行此操作:

audiohub@DYM-Portable-AudioHub:~$ aplay -v -D plughw:X18XR18 "/home/audiohub/Music/Waterlines/05 - Take Your Time.wav"
Playing WAVE '/home/audiohub/Music/Waterlines/05 - Take Your Time.wav' : Float 32 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Linear Integer <-> Linear Float conversion PCM (S32_LE)
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : FLOAT_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 32
  buffer_size  : 13379
  period_size  : 3345
  period_time  : 75854
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 3345
  period_event : 0
  start_threshold  : 13379
  stop_threshold   : 13379
  silence_threshold: 0
  silence_size : 0
  boundary     : 1753612288
Slave: Rate conversion PCM (48000, sformat=S32_LE)
Converter: linear-interpolation
Protocol version: 10002
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 32
  buffer_size  : 13379
  period_size  : 3345
  period_time  : 75854
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 3345
  period_event : 0
  start_threshold  : 13379
  stop_threshold   : 13379
  silence_threshold: 0
  silence_size : 0
  boundary     : 1753612288
Slave: Route conversion PCM (sformat=S32_LE)
  Transformation table:
    0 <- 0
    1 <- 1
    2 <- none
    3 <- none
    4 <- none
    5 <- none
    6 <- none
    7 <- none
    8 <- none
    9 <- none
    10 <- none
    11 <- none
    12 <- none
    13 <- none
    14 <- none
    15 <- none
    16 <- none
    17 <- none
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 32
  buffer_size  : 14563
  period_size  : 3641
  period_time  : 75854
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 3641
  period_event : 0
  start_threshold  : 10923
  stop_threshold   : 14563
  silence_threshold: 0
  silence_size : 0
  boundary     : 1908801536
Slave: Hardware PCM card 2 'X18/XR18' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 18
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 32
  buffer_size  : 14563
  period_size  : 3641
  period_time  : 75854
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 3641
  period_event : 0
  start_threshold  : 10923
  stop_threshold   : 14563
  silence_threshold: 0
  silence_size : 0
  boundary     : 1908801536
  appl_ptr     : 0
  hw_ptr       : 0

audiohub@DYM-Portable-AudioHub:~$ 

我看到仪表在X18XR18控制应用程序中跳舞。根据alsamixer,它根本没有控制,这对我来说很好,因为它实际上是这样的:https ://www.music-group.com/Categories/Behringer/Mixers/Digital-Mixers/XR18/p/P0BI8 所以静音、音量和大量其他内容是通过该应用程序在该端处理的,该应用程序可在该站点的下载部分免费获得。我只想向它扔音频。

还是缺少什​​么吗?

sound
  • 1 1 个回答
  • 6002 Views

1 个回答

  • Voted
  1. Best Answer
    Cool Javelin
    2016-12-17T18:09:36+08:002016-12-17T18:09:36+08:00

    假设:您使用的是 Ubuntu 16.04 和 MPD V0.19.20。

    我刚刚在https://www.musicpd.org/发现有一个新版本 V0.19.21 可以解决您的问题,以及我遇到的一些问题。

    祝我们俩好运。

    标记。

    • 0

相关问题

  • 从网络广播录制声音

  • 播放声音时延迟

  • 5.1环绕声[关闭]

  • 声音,在多个程序之间停止

  • 即使插入耳机,我的扬声器也会发出声音[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve