You are not logged in.

#1 2023-02-18 00:24:10

docFarto
Member
Registered: 2021-11-18
Posts: 24

Detecting audio playback

Hey all I am trying to use libpd to connect a puredata patch to my code written in C and running on the command line.
If you don't know what that is I am essentially trying to play audio from a C program called through the command line.
The problem is when I run the most basic sample from the git repo, nothing comes out. I might have messed up the installation process for libpd, but I have decided its much more likely that I don't have my audio set up properly.
I am using xterm-256color
When I run speaker-test the audio comes out just fine.

I use pavucontrol to check out my. The thing is when I am running this libpd  program from the command line it doesn't show up. Also when I run the gui pure data program I can get audio but it doesn't show up on pavucontrol either(but I do hear sound from gui)

Is there some way to check on all processes trying to play sound?
Also how do I check through what output my terminal is trying to play from by default?

Last edited by docFarto (2023-02-18 18:05:10)

Offline

#2 2023-02-18 20:51:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: Detecting audio playback

sudo fuser -v /dev/snd/*

will show all processes using audio devices, generally if you use a sound server like pulse/pipewire then that should be the only program visible there. From the sources of that library it should have a pulse backend that would make it appear in pavucontrol. Can you control the API lipd uses for output? If it uses ALSA by default you'd want pulseaudio-alsa or pipewire-alsa respectively

Offline

Board footer

Powered by FluxBB