<div dir="ltr">Yes, I have installed virt-viewer 0.6.0 Win x86 MSI from <a href="http://virt-manager.org/download/" target="_blank" style="font-family:arial,sans-serif;font-size:14px">http://virt-manager.org/download/</a>, and tried to set volume, but the volume couldn't be set too.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-25 17:53 GMT+08:00 Marc-André Lureau <span dir="ltr"><<a href="mailto:mlureau@redhat.com" target="_blank">mlureau@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
<br>
----- Original Message -----<br>
> Thanks for your respone!<br>
><br>
> It's strange that client can play audio, but can't set volume.<br>
><br>
> I have renamed the \lib\gstreamer-0.10\libgstdirectsoundsink.dll, the result<br>
> is no audio can play.<br>
><br>
<br>
</div>Right, if the client can play audio, then it is very likely that the plugin is there.<br>
<br>
Where did you get remote-viewer from? <a href="http://virt-manager.org/download/" target="_blank">http://virt-manager.org/download/</a>?<br>
<div><div class="h5"><br>
> I have no idea what the problem is. May I verifiy the directsoundsink element<br>
> have been included?<br>
><br>
> Thanks!<br>
><br>
><br>
> 2014-02-24 20:06 GMT+08:00 Marc-André Lureau < <a href="mailto:mlureau@redhat.com">mlureau@redhat.com</a> > :<br>
><br>
><br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> > Hi all!<br>
> ><br>
> > I connected Spice server by windows spice client which is complied by<br>
> > mingw32, and set the volume.<br>
> ><br>
> > But the volume didn't change.<br>
> ><br>
> > the code form:<br>
> > <a href="https://gitorious.org/spice-gtk/spice-gtk-elmarco/source/f270119352604755a13fcc87783127c3d96c4f61:gtk/spice-gstaudio.c" target="_blank">https://gitorious.org/spice-gtk/spice-gtk-elmarco/source/f270119352604755a13fcc87783127c3d96c4f61:gtk/spice-gstaudio.c</a><br>

> ><br>
> > create pipe code:<br>
> > if (pipeline == NULL)<br>
> > pipeline = g_strdup_printf("appsrc is-live=1 do-timestamp=0 caps=\"%s\"<br>
> > name=\"appsrc\" ! queue ! "<br>
> > "audioconvert ! audioresample ! autoaudiosink name=\"audiosink\"",<br>
> > audio_caps);<br>
> > SPICE_DEBUG("audio pipeline: %s", pipeline);<br>
> > p->playback.pipe = gst_parse_launch(pipeline, &error);<br>
> > if (p->playback.pipe == NULL) {<br>
> > g_warning("Failed to create pipeline: %s", error->message);<br>
> > goto lerr;<br>
> > }<br>
> > p->playback.src = gst_bin_get_by_name(GST_BIN(p->playback.pipe), "appsrc");<br>
> > p->playback.sink = gst_bin_get_by_name(GST_BIN(p->playback.pipe),<br>
> > "audiosink");<br>
> ><br>
> > set volume code:<br>
> > GstElement *e;<br>
> > if (GST_IS_BIN(p->playback.sink))<br>
> > e = gst_bin_get_by_interface(GST_BIN(p->playback.sink),<br>
> > GST_TYPE_STREAM_VOLUME);<br>
> > else<br>
> > e = g_object_ref(p->playback.sink);<br>
> ><br>
> > I have debuged the code. when the volume was set, the e returned NULL.<br>
> ><br>
> > Is it a bug?<br>
><br>
> If you don't have a sink, it means you are missing gstreamer plugins.<br>
><br>
> On Windows, you need the directsoundsink element (from gst-plugins-good). It<br>
> implements the "volume" property.<br>
><br>
> cheers<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
><br>
</blockquote></div><br></div>