Hi Jucers,
I am running into a very specific problem that I don’t know how to address.
I am trying to use a Dante Clara E PCI card from MARIAN with a JUCE App on Ubuntu 22.04.
MARIAN provides an ALSA driver and that works well with softwares like command-line speaker-test or Reaper.
The JUCE App also works well with some other audio output/driver than the Dante card.
But when trying this combination, even with the DemoRunner, the audio is totally distorted as in this example:
The output of the DemoRunner with LINUX_ALSA_LOGGING = 1 is the following:
JUCE/cmake-build/examples/DemoRunner/DemoRunner_artefacts$ ./DemoRunner
ALSA: scanForDevices()
ALSA: Soundcard ID: hw:ClaraE,0, name: 'ClaraE, ClaraE PCM, isInput:1, isOutput:1
ALSA: getDeviceProperties(hw:ClaraE,0)
ALSA: getDeviceNumChannels: 1 512
ALSA: getDeviceProperties(hw:ClaraE,0)
ALSA: getDeviceNumChannels: 1 512
ALSA: getDeviceProperties(hw:ClaraE,0)
ALSA: getDeviceNumChannels: 1 512
ALSA: getDeviceProperties(hw:ClaraE,0)
ALSA: getDeviceNumChannels: 1 512
ALSA: snd_pcm_open (hw:ClaraE,0, forInput=1)
ALSA: ALSADevice::setParameters(hw:ClaraE,0, 48000, 1, 512)
ALSA: format: bitDepth=24, isFloat=0, isLittleEndian=1, numChannels=1
ALSA: frames: 512, periods: 2, samplesPerPeriod: 512
ACCESS: RW_NONINTERLEAVED
FORMAT: S24_3LE
SUBFORMAT: STD
SAMPLE_BITS: 24
FRAME_BITS: 24
CHANNELS: 1
RATE: 48000
PERIOD_TIME: (10666 10667)
PERIOD_SIZE: 512
PERIOD_BYTES: 1536
PERIODS: 2
BUFFER_TIME: (21333 21334)
BUFFER_SIZE: 1024
BUFFER_BYTES: 3072
TICK_TIME: 0
tstamp_mode: NONE
tstamp_type: MONOTONIC
period_step: 1
avail_min: 512
start_threshold: 512
stop_threshold: 4611686018427387904
silence_threshold: 0
silence_size: 4611686018427387904
boundary: 4611686018427387904
ALSA: snd_pcm_open (hw:ClaraE,0, forInput=0)
ALSA: ALSADevice::setParameters(hw:ClaraE,0, 48000, 2, 512)
ALSA: format: bitDepth=24, isFloat=0, isLittleEndian=1, numChannels=2
ALSA: frames: 512, periods: 2, samplesPerPeriod: 512
ACCESS: RW_NONINTERLEAVED
FORMAT: S24_3LE
SUBFORMAT: STD
SAMPLE_BITS: 24
FRAME_BITS: 48
CHANNELS: 2
RATE: 48000
PERIOD_TIME: (10666 10667)
PERIOD_SIZE: 512
PERIOD_BYTES: 3072
PERIODS: 2
BUFFER_TIME: (21333 21334)
BUFFER_SIZE: 1024
BUFFER_BYTES: 6144
TICK_TIME: 0
tstamp_mode: NONE
tstamp_type: MONOTONIC
period_step: 1
avail_min: 512
start_threshold: 512
stop_threshold: 4611686018427387904
silence_threshold: 0
silence_size: 4611686018427387904
boundary: 4611686018427387904
I don’t really know what to look for in this. It does seem ok but??
If anyone as an idea on how to start debugging this problem, I would be very grateful.
Thank you,
Benjamin
PS: I am not new to JUCE but rather fresh on ALSA!
