Tascam US122L, JACK, PulseAudio and OBS

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

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

評価

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

調査の方向性

The report involves a TASCAM US122L on the usb_stream ALSA plugin, configured through the .asoundrc snippet and started with a jackd command that uses -dusb_stream:CARD=US122L. The first step is to reproduce the setup with the attached alsa-info output, since the failure only appears after OBS opens a PulseAudio input. Done would mean identifying which snd_pcm_prepare call returns the Input/output error and why, and the report gives no fix direction, so expect hardware-specific investigation.

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

説明

Apologies if this is the wrong place - however I'm getting an error most of the time in a very specific situation.

My setup is a TASCAM US122L USB interface, which ALSA is capable of recognising and setting up as a usb_stream device. I then run jackd for this device, load the pulseaudio module for a JACK source (at this point I can record via parecord), and then attempt to add a PulseAudio input to OBS. At this point, I'll get an input for less than a second, then it'll cut out and I'll get an error in JACK.

I've attached the output of alsa-info; showing that the device is recognised. The contents of my .asoundrc are somewhat widely used:

# The usb_stream plugin configuration

pcm.!usb_stream {
        @args [ CARD ]
        @args.CARD {
                type string
                default "1"
        }

        type usb_stream

        card $CARD
}

ctl.!usb_stream {
        @args [ CARD ]
        @args.CARD {
                type string
                default "1"
        }

        type hw

        card $CARD
}

I run jackd with a command like:

/usr/bin/jackd -v -p128 -dalsa -dusb_stream:CARD=US122L -r44100 -p256 -n2 -C

I then set up a source in PulseAudio using pacmd load-module module-jack-source. Typically at this point, parecord --device=jack_in test.wav records no problems.

Then I'll run OBS and try to add a PulseAudio input, at which point I usually get a very short period of input (less than 1 second?) and then the input will cut out and I'll see the following error in jackd output:

Couldn't configure usb_stream
: Input/output error
ALSA: prepare error for capture on "usb_stream:CARD=US122L" (Input/output error)

Upon tracking this down, it seems that some call to snd_pcm_prepare by JACK is receiving an error code; but I'm not an expert in this library (or alsa) so it's hard for me to even guess what the problem could be.
alsa-info.txt

I have also raised this issue on JACK in case it's a problem with that library (link here - but details are the same https://github.com/jackaudio/jack1/issues/118#issue-1353053534)

主要言語
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 を短くまとめたダイジェスト。