Questions tagged [pulseaudio]

PulseAudio is a sound system for POSIX OSes, it is a proxy for your sound applications. It allows you to do advanced operations on your sound data as it passes between your application and your hardware. Things like transferring the audio to a different machine, changing the sample format or channel count and mixing several sounds into one are easily achieved using a sound server.

PulseAudio is sound server for linux proposed to replace OSS. It allows input from multiple applications and perform mixing before forwarding it alsa. PulseAudio provide userlevel tools for more control over audio. PulseAudio is bundled with ubuntu and other linux OS by default.

369 questions
4
votes
1 answer

How to change the volume in PulseAudio (libpulse)

I am writing a program to play audio using 'libpulse' on linux. I have successfully played the audio, but need to know how to change the volume. I am able to start the stream using v = PA_VOLUME_NORM; pa_cvolume_set(&m_lcvolume, 1,…
Ibrar Ahmed
  • 1,039
  • 1
  • 13
  • 25
4
votes
2 answers

Contacting Pulse Audio over Dbus

I am trying to write a basic volume application. Since I'm writing this in Ruby I don't want to extend the C library or use ffi, instead I trying to write this with ruby-dbus I got the Address Property with /org/pulse_audio/server_lookup1 but the…
Christopher
  • 639
  • 1
  • 6
  • 14
3
votes
1 answer

PulseAudio vs ALSA: Multiple Soundcards

I'm trying to use a bunch of sundcards (8 usb + 4 hdmi + 1 mobo) to control different zones separately & combine them in cool ways. I'm having trouble getting pulse to recognize all of my soundcards' existence. "aplay -l" recognizes all 13 cards, as…
cyrusv
  • 247
  • 3
  • 15
3
votes
0 answers

Connecting Raspberry Pi acting as smartphone to car infotainment screen via Bluetooth

I am trying to connect my Raspberry Pi via Bluetooth to my car infotainment screen. When scanning for phones, it only recognizes devices with the correct Bluetooth class of device (CoD) for phones, so I changed it with: sudo hciconfig hci0 class…
ZZZ
  • 31
  • 1
3
votes
1 answer

PulseAudioService pa_context_connect() failed in all Qt GUI applications

I have an embedded linux device that is running linux kernel 4.4 and QT5.9.1 with busybox. I have two applications written in QT, one with a GUI and another backend service also written in QT but has no GUI or widgets whatsoever, console only. I've…
Aaron Czajka
  • 147
  • 2
  • 10
3
votes
7 answers

Is it worth starting a new open source project or joining in?

There are a few various open source projects that I'm not particularly happy with, for example, I feel that various aspects of sound on Linux is simply appalling when compared to Windows. I know this is because sound card manufacturers make their…
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242
3
votes
1 answer

Static linking of linux audio libraries

I'm working on an audio library that's targeting both Windows and Linux. For the Windows backends I support DirectSound, WASAPI and ASIO, and for Linux it's ALSA, JACK and PulseAudio. Recently the topic of static vs. shared/dynamic linking of the…
Sjoerd van Kreel
  • 1,000
  • 6
  • 19
3
votes
0 answers

Python-Sounddevice PortAudio not showing any devices when logged in as root

I am running a Python code to record audio playing on a browser in a Google Compute Engine VM (Ubuntu 18.04). Here's the basic code I am running: import sounddevice as sd samplerate = 44100 # Hertz duration = 30 # seconds mydata = sd.rec(0,…
3
votes
1 answer

Pulseaudio C API: create a null sink

I am trying to create 2 simple programs that are basically the parec-simple and pacat-simple examples from the pulseaudio documentation. The only difference is that I would like to create a null sink, equivalent of pactl load-module module-null-sink…
Copil tembel
  • 399
  • 4
  • 22
3
votes
1 answer

Portaudio doesn't recognize all audio devices

This problem ocured to me while I was writing a c++ program so I created a minimum instance of the code to clarify the problem better: #include #include int main() { Pa_Initialize(); int devices =…
Spyros Mourelatos
  • 484
  • 1
  • 8
  • 19
3
votes
1 answer

Qt How to properly connect to a phone programmatically (Bluetooth A2DP, AVRCP, HSP, HFP) in Linux

I am trying to develop an application that uses bluez stack along with pulseaudio and ofono in order to connect to a phone and achieve tasks such as media playback (A2DP), media control (AVRCP), and handsfree-based telephony (HFP). When I connect to…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
3
votes
1 answer

linux pipe audio to virtual microphone using pactl

I found an example that shows how to pass a wave file as microphone input by utilizing "pactl load-module module-pipe-source". The issue with this example is that it relies on an infinite while loop and does not stop when the audio file is success…
Critical Labs
  • 31
  • 1
  • 2
3
votes
0 answers

PulseAudio: Play samples at a set volume

I have built a Raspberry Pi music player, with volume control. The issue is that when the volume is very low or very high, the sound effects (button press bleeps, etc.) are also too weak or too loud. The Raspberry Pi uses PulseAudio (system daemon),…
svenema
  • 1,766
  • 2
  • 23
  • 45
3
votes
1 answer

Java audio Clip cannot be closed when using Linux PulseAudio

I'm trying to play a sound in a Java application but the application never actually terminates because the PulseAudio Eventloop thread is left running even after trying to close the Clip instance used for playing the sound: import…
errantlinguist
  • 3,658
  • 4
  • 18
  • 41
3
votes
1 answer

How to get event from pulseaudio when lists of sinks or sources are changed?

He. The program should constantly check incoming sound from a Bluetooth microphone. Bluetooth device can be connected/disconnected any time. How to get event from Pulseaudio that list of sources changed? I tried to use pa_context_set_event_callback…
Hedgehog
  • 479
  • 6
  • 16