如何使用Mixxx获得NI Traktor Audio 2声卡
我有一台NI Traktor Audio 2声卡我想和Mixxx合作,但到目前为止我似乎没有任何成功。 该卡似乎在开箱即用的Ubuntu中得到支持,它似乎与ALSA一起使用,但我无法在Mixxx中选择它,我不确定是否可以做到让它看到它(例如通过) 。
因此,出于测试目的,在命令行上我可以执行aplay来检查每个通道:
aplay -D plughw:2,0,0 test.wav
和
aplay -D plughw:2,0,1 test.wav
效果很好:我可以听到每个频道的测试声音(A和B)
使用aplay -D
此卡的相关输出是:
hw:CARD=TraktorAudio2,DEV=0 Traktor Audio 2, Traktor Audio 2 Direct hardware device without any conversions plughw:CARD=TraktorAudio2,DEV=0 Traktor Audio 2, Traktor Audio 2 Hardware device with all software conversions
从输出中的这2个项目来看, plughw
是有效的,而hw
没有。
问题是Mixxx只允许我选择hw
卡,这似乎不起作用。 我希望能够选择插卡,这是正在工作的卡。
我试图按照这个问题的建议暂停Pulse Audio,但这似乎不起作用。 我还玩了一个.asoundrc
文件,类似于这个答案的答案 (这是为了这个声卡的旧型号),但也没有成功。
关于如何使Mixxx显示正确的卡(和通道,而我们在它)的任何想法?
谢谢!
谢谢,这帮助我让我的TRAKTOR 2与使用ALSA的Mixxx一起工作。 对于其他主要在ALSA上使用pulseaudio的应用程序,它过去常常开箱即用。 但突然之间,经过一些ubuntu更新后它停止了工作。
我可以通过向pulseaudio添加配置文件来解决这个问题。
以root用户身份访问/ usr / share / pulseaudio / alsa-mixer / profile-sets。 您将看到有音频6,音频8等的conf文件,但音频没有任何内容。但是,令人惊讶的是,在/lib/udev/rules.d/中引用了一个名为native-instruments-traktor-audio2.conf的文件。 90-pulseaudio.rules。 这是问题的根源,也许开发人员省略了文件,而且pulseaudio抱怨找不到它。
创建这个文件很容易,我复制了audio6文件并删除了有关输入的所有内容 – 因为audio2只有输出。 然后它必须完全命名:native-instruments-traktor-audio2.conf
现在它再次起作用,作为奖励,我可以在通道A和B之间进行选择。以前我只能在脉冲音频中限制为通道A.
这是我的档案,希望它能帮助别人。 我想这个遗漏将在一个pulseaudio更新来修复。
[一般] auto-profiles =没有 [映射模拟立体声-a] description =模拟立体声通道A. device-strings = hw:%f,0,0 channel-map =左,右 [映射模拟立体声b输出] description =模拟立体声通道B(耳机) device-strings = hw:%f,0,1 channel-map =左,右 方向=输出 [配置文件输出:analog-stereo-all] description =模拟立体声双工通道A,B(耳机) output-mappings =模拟立体声 - 模拟立体声b输出 优先级= 3 skip-probe = yes [配置文件输出:模拟立体声-a] description =模拟立体声输出通道A. output-mappings = analog-stereo-a 优先级= 1 skip-probe = yes [配置文件输出:analog-stereo-b] description =模拟立体声输出通道B(耳机) output-mappings =模拟立体声b输出 优先级= 2 skip-probe = yes
好吧,虽然我仍然不明白为什么Mixxx无法选择合适的声卡,但我能够在Mixxx wiki中找到适合我的解决方案。 我稍微修改了.asoundrc
文件,以便清楚我选择哪个频道,但它基本上是相同的配置。
总之,我所做的是创建一个名为.asoundrc
的文件, .asoundrc
包含以下内容,并将其放在我的主文件夹中。
什么有效:
- 我现在可以在Mixxx中选择每个单独的声道(A或B)作为单独的声音设备,声音输出到每个正确的声道
什么行不通:
- 来自通道组合(
TraktorAudio2ChannelAB
)的声音设备输出一些乱码声
我没想到的:
- 为什么在每个声音设备的
TraktorAudio2ChannelA
(例如TraktorAudio2ChannelA
)我有128个频道可供选择(见下面的截图),我只期望“频道1 – 2”
所以任何评论或提示赞赏!
ALSA配置文件(〜/ .asoundrc)
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # Native Instruments :: Traktor Audio 2 ALSA Configuration # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Device Channels Ports # ------ -------- ----- # TraktorAudio2ChannelA 2 12xx # TraktorAudio2ChannelA 2 xx34 # # TraktorAudio2ChannelAB 4 1234 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # TraktorAudio2Channel{A,B} :: Raw 1x1 Stereo Devices # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pcm.TraktorAudio2ChannelA { type plug; slave.pcm "hw:TraktorAudio2,0,0"; } pcm.TraktorAudio2ChannelB { type plug; slave.pcm "hw:TraktorAudio2,0,1"; } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # TraktorAudio2ChannelAB :: Multi 2x2 Stereo Device (Ports 1-4, Channels A+B) # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pcm.TraktorAudio2ChannelAB { type multi # Bind hardware devices slaves.a.pcm TraktorAudio2ChannelA slaves.a.channels 2 slaves.b.pcm TraktorAudio2ChannelB slaves.b.channels 2 # Bind channels to virtual device bindings.0.slave a bindings.0.channel 0 bindings.1.slave a bindings.1.channel 1 bindings.2.slave b bindings.2.channel 0 bindings.3.slave b bindings.3.channel 1 }