alsa-lib-1.2.15: no sound

オープン
#488 コメント 13 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c, linux

調査の方向性

The error comes from snd_pcm_open_noupdate in src/pcm/pcm.c around line 2722, where the default PCM name fails to resolve against the configuration tree. Start by checking how the cards.pcm.default lookup is built and which config files or plugins the 1.2.14 and 1.2.15 builds load differently. Done would mean the default device opens on 1.2.15 with the reporter's setup, confirmed by a passing playback test.

索引モデルが issue の本文から書いたものです。

説明

After upgrading alsa-lib to 1.2.15 I get

grozin@localhost /home/Music $ qmmp .mp3
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.15/work/alsa-lib-1.2.15/src/pcm/pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.default
OutputALSA::initialize: error opening PCM device default
OutputWriter::initialize: unable to initialize output

and no sound. Similarly,

grozin@localhost /home/Music $ mpv .mp3
[ffmpeg/demuxer] mp3: Estimating duration from bitrate, this may be inaccurate
● Audio --aid=1 (mp3 2ch 44100 Hz 192 kbps)
File tags:
Genre: Other
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.15/work/alsa-lib-1.2.15/src/pcm/pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM cards.pcm.default
[ao/alsa] Playback open error: No such file or directory
[ao] Failed to initialize audio driver 'alsa'

Could not open/initialize audio device -> no sound.

Audio: no audio

Exiting... (Errors when loading file)

After downgrading alsa-lib to 1.2.14 everything works fine again. This is on Gentoo Linux, see the Gentoo bug https://bugs.gentoo.org/967264

主要言語
C
スター
501
フォーク
227
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alsa-project/alsa-lib のほかの issue

alsa-project/alsa-lib の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。