mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-10-01 01:25:40 -04:00
a16f01fd0f
Conflicts: BuildingArchlinuxTemplate.md BuildingNonFedoraTemplate.md ContributingHowto.md HCLR1.md InstallNvidiaDriver.md InstallationIsoBuilding.md LinuxHVMTips.md Mutt.md Qrexec.md Qrexec3.md Qrexec3Implementation.md QubesBuilder.md QubesBuilderDetails.md QubesDevelopers.md QubesFirewall.md SecurityCriticalCode.md SystemDoc/VMInterface.md UserDoc/SplitGpg.md VMSudo.md VPN.md WindowsDebugging.md
47 lines
2.1 KiB
Markdown
47 lines
2.1 KiB
Markdown
---
|
|
layout: doc
|
|
title: ExternalAudio
|
|
permalink: /doc/ExternalAudio/
|
|
redirect_from: /wiki/ExternalAudio/
|
|
---
|
|
|
|
Using External Audio Devices
|
|
============================
|
|
|
|
Why you want to use external audio devices
|
|
------------------------------------------
|
|
|
|
Qubes audio virtualization protocol does not implement latency reporting for security reasons, keeping the protocol as simple as possible. Also, in a compromise between low latency and low CPU usage, latency may be around 200 ms. So applications demanding higher audio quality (even Skype) need a better environment. But Qubes flexibility fully allows that using external audio devices. These are mostly USB audio cards, but firewire devices also might be used.
|
|
|
|
Implementing external audio devices
|
|
-----------------------------------
|
|
|
|
First you need to identify an user VM dedicated to audio and [assign a device](/doc/AssigningDevices) to it. In the most common case the assigned device is the USB controller to which your USB audio card will be connected.
|
|
|
|
### Fedora VMs
|
|
|
|
In a terminal of the template from which you user VM depends, install pavucontrol with:
|
|
|
|
{% highlight trac-wiki %}
|
|
sudo yum install pavucontrol
|
|
{% endhighlight %}
|
|
|
|
Close the template and start or restart your user VM, insert your external audio device, open a terminal and prepare pulseaudio to use it with:
|
|
|
|
{% highlight trac-wiki %}
|
|
sudo chmod a+rw /dev/snd/*
|
|
pactl load-module module-udev-detect
|
|
{% endhighlight %}
|
|
|
|
Start the audio application that is going to use the external audio device.
|
|
|
|
Launch pavucontrol, for example using "run command in VM" of Qubes Manager and select you external audio card in pavucontrol. You need to do that only the first time you use a new external audio device, then pulse audio will remember you selection.
|
|
|
|
If you detach your external audio device, then want to insert it again, or change it with another one, you need to repeat the previous commands in terminal, adding an other line at the beginning:
|
|
|
|
{% highlight trac-wiki %}
|
|
pactl unload-module module-udev-detect
|
|
sudo chmod a+rw /dev/snd/*
|
|
pactl load-module module-udev-detect
|
|
{% endhighlight %}
|