Автор Тема: проблема с одновременным воспроизведением звука из разных программ  (Прочитано 9657 раз)

Оффлайн PeterVF

  • Начинающий
  • *
  • Сообщений: 11
    • Email
Здравствуйте.
Система KDesktop 8.0.0 , обновленная до Sisiphus (давно).
После последнего обновления 12 января обнаружилась проблема с одновременным воспроизведением звука из разных программ
до этого, обновлялся в сентябре. (всего 1720 пакетов)
Полагаю, что сломалось из-за обновления libalsa (1.1.6-alt2 -> 1.1.7) и сопутствующих.
cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xd0600000 irq 27
Прошу помощи в восстановлении нормальной работы звуковой системы.

Оффлайн Антон Мидюков

  • alt linux team
  • ***
  • Сообщений: 5 183
  • antohami@
Pulseaudio в системе? Если да, то как минимум должен быть установлен alsa-plugins-pulse.
И желательно, если есть такая опция, настраивать у программ вывод звука через pulseaudio.

Конкретизируйте, чтобы можно было воспроизвести. Какие программы одновременно?

Оффлайн PeterVF

  • Начинающий
  • *
  • Сообщений: 11
    • Email
$ rpm -qa  | grep alsa
alsa-set-initial-options-1.3-alt1.noarch
alsa-plugins-pulse-1.1.7-alt1.x86_64
i586-libalsa-1.1.7-alt1.i586
libsox-fmt-alsa-14.4.2-alt2.x86_64
alsa-utils-1.1.7-alt1.x86_64
libalsa-1.1.7-alt1.x86_64
alsa-tools-1.1.7-alt1.x86_64
alsa-oss-1.1.6-alt1.x86_64

Проявляется, например, так:
если крутится youtube-ролик (firefox), при попытке позвонить в twinkle, последний вылетает с ошибкой невозможности подключиться к alsa.
Такая же проблема с Audacity.
В twinkle выбор лишь между alsa и oss
Собственно, и firefox и audacity и twinkle тоже обновились. :-\
Совместно firefox и vlc или dragon player работают нормально.

Как обычно, до обновления всё уживалось вместе без подабных проблем.

Оффлайн Антон Мидюков

  • alt linux team
  • ***
  • Сообщений: 5 183
  • antohami@
Совместно firefox и vlc или dragon player работают нормально.

Они работают через pulseaudio.

Вешайте багу на alsa-plugins-pulse. Он должен решать, описанную вами проблему.
Кстати, надо в логах покопаться, почему он не работает как надо.

Попробуйте ещё запускать audacity и twinkle через padsp:
padsp audacity
padsp twinkle

Оффлайн klark973

  • Завсегдатай
  • *
  • Сообщений: 662
  • Неспящий саппорт
Вешайте багу на alsa-plugins-pulse. Он должен решать, описанную вами проблему.
В былые времена безпульсовости в самой альсе проблема решалась софтмикшером dmux в конфиге хомяка.
To moan or to solve -- that is the question!

Оффлайн PeterVF

  • Начинающий
  • *
  • Сообщений: 11
    • Email
.....
Попробуйте ещё запускать audacity и twinkle через padsp:
padsp audacity
padsp twinkle

$ padsp twinkle
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b91020), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::LabelEngine(0x1b94160), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b91020), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b91020), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b954a0), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b954a0), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b91020), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b91020), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::LabelEngine(0x1b94160), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b91020), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Oxygen::WidgetStateEngine(0x1b91020), parent's thread is QThread(0x1b10db0), current thread is QThread(0x7f3498007350)
QBackingStore::endPaint() called with active painter on backingstore paint device
KCrash: Application 'twinkle' crashing...
KCrash: Attempting to start /usr/libexec/kf5/drkonqi from kdeinit
sock_file=/run/user/500/kdeinit5__0

[1]+  Остановлен    padsp twinkle

Оффлайн PeterVF

  • Начинающий
  • *
  • Сообщений: 11
    • Email
...
Вешайте багу на alsa-plugins-pulse. Он должен решать, описанную вами проблему.
Кстати, надо в логах покопаться, почему он не работает как надо.
...

повесил
https://bugzilla.altlinux.org/show_bug.cgi?id=35919

Оффлайн PeterVF

  • Начинающий
  • *
  • Сообщений: 11
    • Email
Помогло:

mkdir -p /etc/alsa/conf.d; cp /usr/share/alsa/alsa.conf.d/* /etc/alsa/conf.d

(нашел здесь: https://bugzilla.altlinux.org/show_bug.cgi?id=35790)

Спасибо.