So basically what I want to accomplish is to capture all the raw, mixed audio coming from my system as a raw stream of audio data and send it over the network. In terms of UX, the experience I would want to achieve would be that I can select this  &quot;virtual audio output device&quot; from my system settings in Ubuntu, just as if it were a pair of bluetooth headphones connected to my machine, or a projector with speakers plugged into the HDMI port for example. What I actually want to do in my virtual audio device would be to have access to the raw audio data, so that I could chop it up into packets and send it over a UDP socket. What would be the audio API's I would use to accomplish this? I have done a bit of searching, and it looks like maybe implementing a PulseAudio sink is what I would need to implement?  In other words, is PulseAudio what's behind the scenes when I am choosing output devices in the settings GUI in Ubuntu 18.04? Also, once I have created my &quot;virtual output device&quot;, how do I get the system to recognize it as one of the output options?
124050
There is a Linux (Manjaro) PC without an audiocard. Is it possible to create a virtual audio device? The usage idea is the following: virtual audio device process a sound, then there is a server connected to our sound channel and it transfer the sound to the client (smartphone).
32537
From the reading that I have done, Core Audio relies heavily on callbacks (and C++, but that's another story).    I understand the concept (sort of) of setting up a function that is called by another function repeatedly to accomplish a task.  I just don't understand how they get set up and how they actually work.  Any examples would be appreciated.
58294
I'd like to listen to music on my home server from work. Both are Ubuntu boxes running pulseaudio. It seems from researching that applications communicate to the PA server via TCP on port 4317, so I figured it should be as easy as:  me@work: ssh -YR 4317:localhost:4317 me@home   At this point I can run rhythmbox from the ssh session with X11 forwarding, and I assumed rhythmbox would be transparently talking to pulseaudio over the reverse tunnel, resulting in the music playing on my work machine. However instead it appears that the music still plays on my home computer. I've tried messing around with PULSE_SERVER as well to no avail.  Has anyone accomplished something similar? It seems like this should be relatively simple due to pulseaudio's design. I've played around with mounting my music library via sshfs instead but I'd really like to have one set of metadata/app settings/playlists and such. Thanks for any tips!
40891
I have a laptop Acer Predator G9-792  It has 2 or 4 speakers (there is 5 holes but not sure are all holes have speaker inside) and subwoofer  On windows 10 everything working as expected, but in Ubuntu 16.10 only subwoofer being used to output sound  I've tried recommendations here -   including enabling 3,4,5,6 channels - sound either stop working or keep working through subfoower  alsamixer with extra driver support also didn't work  Is there anything I can try to enable normal sound on the laptop?
42541
I am trying to use a Bluetooth headset on an Ubuntu PC. I am able to connect phone to pc via BT. I can stream music to PC. But cannot hear call audio. I have checked in Android phone logs, and BT sco link is established. But when making a call or virtual call (play audio through sco path in Android phone) the audio is not audible in PC headset. SCO packets are NOT appearing in btmon logs either. Anyone successfully done this?  version- ubuntu 16.04 Installed- bluez, ofono, pulseaudio pactl sink: Name- bluez_sink.22_22_8E_DE_B9_2B,             Name: alsa_output.pci-0000_00_1b.0.iec958-stereo pactl source: Name-bluez_sink.22_22_8E_DE_B9_2B.monitor               Name: alsa_input.pci-0000_00_1b.0.analog-stereo
23636
The headphones are detected, because when they are plugged in, they appear in the sound settings.  The problem is that they just don't output any sound.  Laptop speakers output sound just fine.  I'm running Ubuntu 16.04 x64  This is the output from running :    What steps can I take to try and debug this issue myself?  Edit 1  Thanks to @Rexford and this , I've worked out how to get detailed debugging output from pulseaudio, by temporarily modifying /etc/pulse/client.conf using the --log-level flag.  I'll report back after I play around with this new information and try to find the problem.  Edit 2  Woke up this morning planning on getting to the bottom of this issue, when I discovered that the sound from the headphones started working.  Last night I had tried many solutions (from various forums and webpages), but was not restarting my computer (was just doing pulseaudio -k &amp;&amp; sudo alsa force-reload).  So I guess that the reboot was necessary to make one of the solutions kick in and actually work.  One of the biggest things I tried was uninstalling pulseaudio, installing gnome-audio as a replacement and going back to pulseaudio. So I recommend others try that if they are struggling. Just note that if you do that, you should follow the instructions  to get your volume/sound icon back (if it's missing after reboot - which it was for me).  I can't get to the root of this problem now, because it no longer exists for me.  Edit 3  The problem came back...  Debug logs from pulseaudio don't reveal anything useful (e.g. error messages).  According to , alsa is the next stop to check for the cause.
117292
System:  2011 iMac, built-in microphone, Mountain Lion.  This is a two part question.  First the more basic scenario, second the more-niche scenario that I hope to ultimately solve.  I want to share my Mac audio over Skype, while still being able to simultaneously talk to the person on the other end of the call.  As of yet, every combination of options I have tried (dozens) involving Soundflower, aggregated devices, and even LineIn.app has completely failed.    So firstly, what are the precise steps needed to get my Mac audio (say, youtube videos playing in a browser...) to transmit over Skype along WITH my voice from the built-in Mic?  Now for the ultimate solution I hope to achieve.  I want to be able to collaborate musically with other parties, using a program called Reason from Propellerhead Software.  Reason has its own audio interface setting - a single setting for both input and output.  I use the Propellerhead's own audio interface called "Balance" as my audio device for the software, providing my physical I/O as well as a headphone mix.  I want to be able to merge the audio output of Reason, along with my voice via the built-in mic of the Mac, and send them together over Skype so that the other person can hear what I'm doing in reasonable fidelity (subject to Skype's limitations, of course).  Can anyone provide the exact steps to share Reason's audio along with my mic, over Skype?  If 3rd party software beyond SoundFlower/LineIn is required, I'm OK with that... though this should work with just SoundFlower even.  I even had it working a couple months ago but can't seem to replicate the result again.
93376
I wanted to use a USB audio input to record a video, and got something I've never seen before having done this 100 times; it asked "Authorize Quicktime to use the microphone?" I clicked no, because I didn't want it to use the internal mic, I wanted it to use a USB input.  Now, it won't let me get rid of the denial.  I've quit QT, quit &amp; reopened it twice and it still won't let me choose ANY input source. It still says it doesn't have access to the microphone.  Is this a new Mojave 10.14.2 bug or what?  How the heck do I get out of this?  Thanks!
15513
I just realized there is a /usr/lib/systemd/user/pulseaudio.service provided by the pulseaudio package. It is disabled but pulseaudio works completely fine without. Have been using it for a year. Don't need to do anything after boot to start the actual executable. It's an Ubuntu shipped-in package after all. Why is it so ? Should I enable the service ? If so, why doesn't Ubuntu do this by default ? Also, what will change from current operation ? Thanks in advance PS: The ubuntu wiki page doesn't give any information.
34940
I have a PC that is hooked up to my HDTV (via a long hdmi cable) and to a monitor, which is in another room. I have speakers directly plugged to the PC audio out. The PC is next to the monitor and speakers.   I am not sure but I think Windows can play sound on only 1 audio device at a time. And I can only set 1 device as the default output. I can get sound on the TV or speaker depending on which device I set to default. But I would have to do this every time I switch between using my TV or my monitor!   Is there some way to configure such that sound plays through the TV if the TV is on, else it plays in the speakers? If this is not possible, then the next best alternative would be to get the sound to play on both the devices at the same time.
114982
I've got a NI Traktor Audio 2 sound card I'd like to get working with Mixxx, but I don't seem to have any success so far. The card seems to be supported in Ubuntu out of the box, and it seems to work well with ALSA, but I cannot select it in Mixxx and I'm not sure whether is something I can do to make it see it (e.g. through).  So for testing purposes, on the command line I can execute aplay to check each channel:  aplay -D plughw:2,0,0 test.wav   and  aplay -D plughw:2,0,1 test.wav   That works well: I can hear the test sound on each channel (A and B)  The relevant output for this card using aplay -D is:  hw:CARD=TraktorAudio2,DEV=0      Traktor Audio 2, Traktor Audio 2      Direct hardware device without any conversions plughw:CARD=TraktorAudio2,DEV=0      Traktor Audio 2, Traktor Audio 2      Hardware device with all software conversions   From those 2 items on the output, plughw is the one that works, whereas hw doesn't.  The problem is that Mixxx only lets me select the hw card, which does not seem to work. I'd like to be able to select the plughw card, which is the one that's working.  I've tried suspending Pulse Audio as suggested by , but that did not seem to work. I also played around with an .asoundrc file similar to the one  (which was for an older model of this sound card), but also without success.  Any ideas on how to make Mixxx show the right card (and channel, while we are at it)?  Thanks!
108826
From 2 microphone inputs I have only one in use. When I talk into my USB microphone the audio echoes back to my local speakers (my "hello" is getting looped back instantly).   How do I turn this off?  Additional information on how to do this from command line (for a remote machine) would be appreciated.
106526
I have a USB turntable which when plugged in to my Ubuntu 10.10 machine appears in the audio settings as an input device (USB PnP Audio Device Analog Stereo) like a microphone.  What I'd like to be able to do is have the sound for that audio device played back through the audio output (speaker or whatever). I'm not too worried if there's a slight delay between the audio coming in and it being played out through the speakers.  As far as I'm aware this is refereed to as software loopback. I can achieve exactly what I want if I open Audacity, enable software loopback and press record. Obvious this isn't ideal as I don't really want it recording what I'm playing all the time.  I know this is possible because of the Audacity example however I'd like to know if there's a way to do it without it recording. I've search around for a while for a piece of software that does this, however I couldn't get anything even close.  Any help would be greatly appreciated.
70624
I am a total newbie to Ubuntu, and I'm not sure what to do here. I have a Toshiba Chromebook. I had a friend install the latest version of Ubuntu on it for me. For a while, the audio in Ubuntu was working fine, but now I can't hear any audio whatsoever.  How can I fix this?
12027
I have a  bluetooth stereo headset (using A2DP) I'd like to use on my Lubuntu machine. The headset works fine with my phone.  Please note that unlike all other Ubuntu flavours, Lubuntu does not come with Pulseaudio.  It is detected by Lubuntu's Blueman Bluetooth configuration application and I can establish a connection successfully. It also appears to actually communicate as it shows data being sent back and forth. However, Sound keeps coming out of the loudspeakers only, while the headset remains silent. I would have expected the sound to come from my headset at this point.  Where do I start troubleshooting here?
86843
When creating either an Aggregate Device or a Multi-Output Device in Audio MIDI Setup and setting it as the default audio output device, the volume control is greyed out and locked at maximum intensity. Why is that and how can it be bypassed?
11311
I guess this question already had the answer here but I can't find it. I'm using 12.04.  Update:  The problem is that I can hear the sound from my laptop's speakers even if I plugged in my headphones. Headphones is just standard stereo headphones. And the most interesting thing is  that all was working just a week ago.  I tried to play with pulseaudio and alsamixer settings - no results.