[gnome-boxes] Add a sound card device to VMs



commit d9757b6122b365594536612581916c7643c1de7b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Dec 22 22:16:29 2011 +0200

    Add a sound card device to VMs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666599

 configure.ac             |    2 +-
 src/vm-configurator.vala |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 026f3b6..efd1d9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,7 @@ GOBJECT_INTROSPECTION_MIN_VERSION=0.9.6
 GTK_MIN_VERSION=3.3.3
 GTK_VNC_MIN_VERSION=0.4.4
 LIBVIRT_GLIB_MIN_VERSION=0.0.3
-LIBVIRT_GCONFIG_MIN_VERSION=0.0.3
+LIBVIRT_GCONFIG_MIN_VERSION=0.0.4
 LIBXML2_MIN_VERSION=2.7.8
 SPICE_GTK_MIN_VERSION=0.7.98
 GUDEV_MIN_VERSION=167
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index d4b61df..42ef929 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -51,6 +51,10 @@ private class Boxes.VMConfigurator {
         var iface = new DomainInterfaceUser ();
         domain.add_device (iface);
 
+        var sound = new DomainSound ();
+        sound.set_model (DomainSoundModel.AC97);
+        domain.add_device (sound);
+
         return domain;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]