Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
iiii90852yIf anyone knows some open source audio player implementing PulseAudio, please send me the link to understand how to properly handle this bullshit
-
Poss VLC or Mplayer? Haven't checked but IK my OS was using that library to play audio from those applications.
Good luck 🫠-
hjk10156962yhttps://audacious-media-player.org/
https://github.com/audacious-media-...
Audacious is an audio only player that is the foobar2000 of Unix (but also runs on Windows) this should be more focused than the other media players mentioned. -
@iiii hmm, there must be simpler way to play notification sounds than implement pulse audio
-
j0n4s53102yIsn't pipewire the new shit, that also implements pulseaudio, jack, alsa, etc all in one?
-
I have a microphone that my Ubuntu OS doesn't recognise. The audio output sounds like its from the 60s radios.
-
hjk10156962y@iiii I'm only a user, just glanced at the source for you. I don't know how much the plugin system is handling it if there is some dbus magic going on. Think that would be in the main repo (not the plug-in one).
I would not think that sending audio to pulse should be that hard.
If you can steal some more or the plugin system you can actually use all output plugins including pipewire if you would like. -
hjk10156962yJust read your username usecase. Are you sure you are feeding it valid data .wav does not have to be PCM data.
Perhaps libao might be interesting. Think it handles all the platform specific things and allows you to focus on just giving it the audio buffer. -
I asked "How to play wav files using pulse audio in c" to chatGPT and it gave a beautiful 5 step plan
-
@iiii are you too proud to ask chatGPT? Don't worry - the c code it produces many times have errors. A lot of fun stuff left to do
-
in the worst case you could just invoke a
paplay /path/to/audio.ext
to play a sound on the currently active sound device. That's what i do for a startup sound. -
funnily enough tho, im running pulse + alsa in my studio setup and never really had problems with it.
-
iiii90852y@thebiochemic but have you tried to implement the pulse API yourself instead of using ready solutions? That's the catch.
-
@iiii not pulseaudio, no. Luckily i always got around it, by just writing a bunch of .sh scripts.
But yeah, the silent fails were plaguing me there too. It's super annoying
once it was running, it was running tho -
on another note, you could potentially take a look at the source of paplay, maybe you'll find something useful there (if not already done)
For god fucking sake, PulseAudio, write a usable fucking documentation for your library and remove idiotic silent exit(1) calls and properly log what the fucking issue was
I'm tired of debugging this piece of bull shit for over a month now already while the pulse library occasionally crashes for no apparent reason
rant