``id``
Integer id of the audio device. Must be greater than 0.
+``timerPeriod``
+ Timer period in microseconds. Must be greater than 0. If omitted,
+ the lowest possible period is used.
+
All the backends support child element for configuring input and
output properties
...
<devices>
- <audio id='1' type='pulseaudio'>
+ <audio id='1' type='pulseaudio' timerPeriod='40'>
<input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='100'>
<settings frequency='44100' channels='2' format='s16'/>
</input>
&def->id) < 0)
goto error;
+ if (virXMLPropUInt(node, "timerPeriod", 10, VIR_XML_PROP_NONZERO,
+ &def->timerPeriod) < 0)
+ goto error;
+
inputNode = virXPathNode("./input", ctxt);
outputNode = virXPathNode("./output", ctxt);
virBufferAsprintf(buf, "<audio id='%d' type='%s'", def->id, type);
+ if (def->timerPeriod)
+ virBufferAsprintf(buf, " timerPeriod='%u'", def->timerPeriod);
+
switch (def->type) {
case VIR_DOMAIN_AUDIO_TYPE_NONE:
break;