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
3
votes
0 answers

how to find pulseaudio dbus server when using system-instance

I'm trying to use org.PulseAudio1 and org.PulseAudio.ServerLookup1 to find the unix path to the pulseaudio dbus server exposed from module-dbus-protocol. I'm enabling system mode via 'system-instance = yes'. I'm also enabling module-dbus-protocol.…
Chris Morgan
  • 1,277
  • 1
  • 13
  • 33
3
votes
1 answer

Ubuntu 14.04 - How do I play an ogg file on shutdown with a script?

So, I'm attempting to have a script play a short ogg file on shutdown/restart but I seem to be having some sort of trouble actually getting it to work. Right now, I have the script in init.d and have symbolic links in rc0.d and rc6.d that all seem…
JGaines
  • 153
  • 8
3
votes
0 answers

simplest way of recording 8 bit signed mono 16khz sound with alsa (in a way it's compatible with pulse)?

I'm totally lost, does anyone have a very simple example of how to record a sound using ALSA with c++? the only thing i need is the raw samples as signed bytes for feeding them to another part of my program. All the examples i found googling seem to…
cyborg_ar
  • 120
  • 1
  • 6
3
votes
3 answers

Error playing audio file from Java via PulseAudio on Ubuntu

The message on the shell is: Exception in thread "main" java.lang.IllegalArgumentException: Invalid format at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseAudioDataLine.java:142) at…
blackhawk87
  • 29
  • 1
  • 3
3
votes
2 answers

PulseAudio does not detect sound cards on RaspBMC

I am trying to record the default audio output from raspbmc (running on a Raspberry Pi Model b) to a raw wav stream (which i want to pipe to piFM to transmit audio to an FM tuner). I did not succeed using arecord and found out that the default audio…
blckwngd
  • 1,858
  • 1
  • 13
  • 10
3
votes
0 answers

Pulseaudio setting in debian

I am using Debian 7 wheezy(64 bit) in dell inspiron i5. Default audio driver in pulseaudio and other two are HDA Intel and HDA ATI HDMI . So here is the question when increase or decrease volume from any player like vlc,movie player volume increase…
Mercurial
  • 3,615
  • 5
  • 27
  • 52
3
votes
1 answer

No bluez device after pactl list sources short

I am using pulseaudio on a Raspberry Debian (Wheezy) but my bt-headset does not show up in sources or sinks. What I did: I followed the Raspbian Wheezy Installation Guide at:…
Brutus Cruciatus
  • 404
  • 3
  • 18
3
votes
0 answers

PulseAudio: Threaded Main Loop data callbacks

I have a question about how to use the threaded main loop data callback feature. I've been looking at the documentation and trying it out. To try the data callback, I've taken the AsyncDeviceList example , changed the mainloop to a threaded…
fangstar
  • 190
  • 2
  • 10
2
votes
1 answer

Detecting key presses using Term::ReadKey; and syswrite to audiostream;

I am trying to create a simple terminal music application, lets call it a piano. The application reads keys from the key board, and outputs a sample to a file handle (pointing to a /dev/audio; which doesn't exist unless piped through padsp...but…
Saif Ahmed
  • 21
  • 2
2
votes
1 answer

Change name of Application in Pipewire/Pulseaudio

I am currently trying to build a very simple Audio-Tool, which needs to change its name in pavucontrol and qjackctl on runtime. When an Application produces Audio, its name is shown in pavucontrol. E.g. if I use firefox it is shown as "Firefox". I…
cediwelli
  • 370
  • 1
  • 8
2
votes
1 answer

Cannot create an array of SinkInputInfo

I cannot make an array of SinkInputInfo objects. I've posted this to the appropriate repo but got no response. Minimal reproduction: using PulseAudio; public void main () { SinkInputInfo[] sink_inputs; } Outputs /tmp/test.vala.PFQW80.c: In…
ChildishGiant
  • 320
  • 1
  • 12
2
votes
3 answers

Cannot run VLC on de-escalated C program

I'm trying to indirectly run VLC media player on Linux from a program that runs as root (i.e. sudo ./capture). After running into some error codes that VLC doesn't run as root, I attempted to de-escalate the program's privileges before running, as…
MusicMan
  • 134
  • 9
2
votes
2 answers

Using mixer on linux(PulseAudio) get java.lang.IllegalStateException when opening a line

This is i found mixer on Ubuntu 11.04 Name: PulseAudio Mixer Vendor: IcedTea Version: 0.02 Description: the ear-candy mixer I get this error Exception in thread "PooledThread-14" java.lang.IllegalStateException: Mixer is already open at…
Kenjiro
  • 749
  • 1
  • 12
  • 33
2
votes
4 answers

How can I make pulseaudio run as root?

If I take an mp3 file and try to hear it using my normal user account using sox file.mp3 -d , it works flawlessly. However, if I try to do the same thing after doing sudo su, it yields: Home directory not accessible: Permission denied. The use-case…
David Moore
  • 90
  • 1
  • 8
2
votes
0 answers

Pulseaudio producing irregular audio inside ECS fargate

I am running a ubuntu docker container inside ECS fargate and I'm using pulseaudio to record audio, but the audio output is irregular. Any suggestions on how to deal with this issue? If I need to pass the sound card to docker as a device, how can I…
Naman V
  • 21
  • 1