Skip to content

Distorted audio output when using JACK and all interface output channels #4

@stefano-tronci

Description

@stefano-tronci

Hi there! I found some odd behaviour while using this package on Arch Linux.

Here the description:

using PortAudio

# PortAudio.list_devices()
#0: HDA Intel HDMI: 0 (hw:0,3) [ALSA], [0/8]
#1: HDA Intel HDMI: 1 (hw:0,7) [ALSA], [0/8]
#2: HDA Intel HDMI: 2 (hw:0,8) [ALSA], [0/8]
#3: HDA Intel PCH: ALC269VB Analog (hw:1,0) [ALSA], [2/2]
#4: hdmi [ALSA], [0/8]
#5: pulse [ALSA], [32/32]
#6: default [ALSA], [32/32]
#7: system [JACK Audio Connection Kit], [2/4]

devID = 7

# The device is a Scarlett 2i4, 2 inputs and 4 outputs.

# This seems to work fine:
stream = open(devID, (0, 2), 48000)
x = 0.1 * randn(10 * 48000, 2)
write(stream, x)
close(stream)

# This produces weird distorted output:
stream = open(devID, (0, 4), 48000)
x = 0.1 * randn(10 * 48000, 4)
write(stream, x)
close(stream)

So, if I try to route audio to all the available outputs I get some weird sound.

It feels like a bug. Let me know if you need more info.

Linux arch 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64 GNU/Linux
jack2 1.9.10
julia 0.4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions