portaudio broken/ not sees device

Firstly, I greatly appreciate all of your work, folkx. Thank you!

Now, coming to terms.

My setup: AMD-64, Terratec DMX XFire cs46xx, Debian Buster, stock Audacity v2.2.2 & libportaudio install

Observation: Audacity not see cs46xx devices (only onboard USB sound & vup/ downmix devices).
But ALSA tools & Ardour see, and they are able to capture/ output sound.
The error messg a got when starting audacity was something like in pa_alsa_linux.c function “set_period_size_near(…”. (cs46xx supports period_size 512 only at max).

After weeks over weeks of troubleshooting I got the impression that the underlying portaudio lib may be blamed for this error. So, I began swapping the portaudio lib against older versions a several times.

These are my findings, all with Audacity from Debian Buster repository v2.2.2:

  • portaudio stock version from Debian Buster => not works, Audacity not see devices of cs46xx (orig ticket issue)
  • portaudio2_19+svn2014XXX (in Debian Jessie?) => Nope, same as above
  • portaudio2_19+svn2011XXX (in Debian Wheezy/ Ubuntu?) => Ok, Audacity can record & play!

Seems, something has broken on the way from portaudio svn2011XXX up to => 2014XXX…

Hope, this helps any user in dispair as I was. And maybe, you developers manage to correct this issue in future versions of portaudio.

Thank you for your attention, and keep up your good work!
Cu

Perhaps you could report the problem to Portaudio: PortAudio - an Open-Source Cross-Platform Audio API

Could you try and get the exact error message. I’m not finding anything helpful on Google.

Are you able to build a C++ app from the source code?

https://github.com/PortAudio/portaudio/issues/524

@steve: thank you for your quick answer.

Are you able to build a C++ app from the source code?

Well, building software is not my daily cup of tea, so to say. :unamused: But I did compile & build, a several times. (First, I would need a running build environment…)

I was thinking that you could temporarily remove any portaudio “dev” packages that you may (or may not) have installed, and build Audacity from the source code (which includes portaudio).

I posted some recent build instructions here (pinned near the top): Compiling Audacity - Audacity Forum
The steps include setting up a minimal build environment.

After several years of “foreign” activities, I now found some time to re-tackle my issue.

Now operating the following setup:

  • Debian v12 Bookworm
  • ALSA v1.2.8
  • Audacity v3.2.4 & Portaudio v19
  • Soundcard the same Terratec DMX XFire 1024, w/ cs46xx kernel module

Updated findings:

  1. The new Audacity & Portaudio, as before, don’t see my cs46xx devices…

  2. What WORKS: Operating JACK as a backend. This requires “period_size = 512 frames” or below. With a setting of 1024 or above, JACK does not connect to the soundcard, and an error is logged.
    With the same setting of 512, Ardour also can operate my soundcard (here, the setting is called “buffer_size/ samples”…) And, interestingly enough, Ardour does not offer a 1024,… setting for my cs46xx device.

Assumption:
My cs46xx ALSA device cannot be connected to with a 1024 period_size (or above), as noted previously.

ukisensei

And yes, I will consider setting up a build env,
But, if the (probably) relevant code section

pa_alsa_linux.c function “set_period_size_near(…”
(reminder: cs46xx supports period_size 512 only at max).

hasnt been changed in newer versions, what would it give then?

ukisensei