Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No output when specifying a device #475

Open
RenaKunisaki opened this issue Jun 15, 2023 · 3 comments
Open

No output when specifying a device #475

RenaKunisaki opened this issue Jun 15, 2023 · 3 comments

Comments

@RenaKunisaki
Copy link

Not sure if this is just something weird with my system. The device list is:

>>> import sounddevice as sd
>>> sd.query_devices()
  0 HDA ATI HDMI: 0 (hw:0,3), ALSA (0 in, 8 out)
  1 hdmi, ALSA (0 in, 8 out)
  2 jack, ALSA (2 in, 2 out)
  3 pipewire, ALSA (64 in, 64 out)
  4 pulse, ALSA (32 in, 32 out)
* 5 default, ALSA (64 in, 64 out)
  6 Family 17h/19h HD Audio Controller Analog Stereo, JACK Audio Connection Kit (4 in, 2 out)
  7 IceCat, JACK Audio Connection Kit (2 in, 0 out)
  8 Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI), JACK Audio Connection Kit (2 in, 2 out)
  9 PulseAudio Volume Control, JACK Audio Connection Kit (8 in, 8 out)

When I create an OutputStream and specify anything other than default for the device parameter, there's no output. The callback is called and no error shows up in the console, but no audio comes out any device, and pavucontrol doesn't show any output stream.

@mgeier
Copy link
Member

mgeier commented Jun 29, 2023

Sorry, I don't know. It looks like you are using PipeWire. I haven't tried that yet.

Do other PortAudio applications work as expected?

@RenaKunisaki
Copy link
Author

Honestly I don't know much about the audio subsystems. Other applications handle sound just fine, but I don't know what they're using.

Ultimately what I want is for my app to create multiple output streams, each automatically routed to a specific device (instead of having to manually route them in pavucontrol).

@mgeier
Copy link
Member

mgeier commented Jul 3, 2023

Other applications handle sound just fine, but I don't know what they're using.

Well, I don't know either.
Maybe do a quick web search to check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants