2013-03-17 17:06:52 -04:00
#
2014-09-15 12:22:56 +02:00
# Copyright 2008-2009, 2013-2014 Red Hat, Inc.
2013-03-17 17:06:52 -04:00
# Cole Robinson <crobinso@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
2013-10-27 21:59:47 +01:00
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
2013-03-17 17:06:52 -04:00
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
2014-09-12 15:59:22 -04:00
from . device import VirtualDevice
from . xmlbuilder import XMLProperty
2013-03-17 17:06:52 -04:00
2013-04-13 14:34:52 -04:00
2013-04-10 19:48:07 -04:00
class VirtualAudio ( VirtualDevice ) :
2013-07-16 09:14:37 -04:00
virtual_device_type = VirtualDevice . VIRTUAL_DEV_AUDIO
2013-03-17 17:06:52 -04:00
MODEL_DEFAULT = " default "
2015-05-19 16:44:08 -04:00
MODELS = [ " es1370 " , " sb16 " , " pcspk " , " ac97 " , " ich6 " , " ich9 " ]
2013-03-17 17:06:52 -04:00
2013-09-19 13:27:30 -04:00
model = XMLProperty ( " ./@model " ,
2013-07-15 22:00:08 -04:00
default_cb = lambda s : " es1370 " ,
default_name = MODEL_DEFAULT )
2013-07-24 08:46:55 -04:00
VirtualAudio . register_type ( )