[Spice-devel] [spice-gtk PATCH v3 2/5] audio: spice-audio with get mute and volume

Marc-André Lureau mlureau at redhat.com
Fri Mar 27 07:18:17 PDT 2015


ack

----- Original Message -----
> Functions to be implemented by spice-gstaudio and spice-pulse to get the
> updated volume and mute values for playback and record stream.
> ---
>  gtk/spice-audio.h | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/gtk/spice-audio.h b/gtk/spice-audio.h
> index ebc4946..8c268c2 100644
> --- a/gtk/spice-audio.h
> +++ b/gtk/spice-audio.h
> @@ -67,8 +67,12 @@ struct _SpiceAudioClass {
>  
>      /*< private >*/
>      gboolean (*connect_channel)(SpiceAudio *audio, SpiceChannel *channel);
> +    gboolean (*get_playback_mute)(SpiceAudio *audio);
> +    guint16* (*get_playback_volume)(SpiceAudio *audio, guint8 *nchannels);
> +    gboolean (*get_record_mute)(SpiceAudio *audio);
> +    guint16* (*get_record_volume)(SpiceAudio *audio, guint8 *nchannels);
>  
> -    gchar _spice_reserved[SPICE_RESERVED_PADDING];
> +    gchar _spice_reserved[SPICE_RESERVED_PADDING - 4 * sizeof(void *)];
>  };
>  
>  GType spice_audio_get_type(void);
> --
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list