Package: gtk

Accessor gtk:media-stream-volume

Lambda List

gtk:media-stream-volume (object)

Syntax

(gtk:media-stream-volume object) => volume
(setf (gtk:media-stream-playing object) volume)

Arguments

object -- a gtk:media-stream object
volume -- a double float with the volume of the stream from 0.0 to 1.0

Details

Accessor of the volume slot of the gtk:media-stream class. The gtk:media-stream-volume function returns the volume of the audio for the stream. The (setf gtk:media-stream-volume) function sets the volume of the audio stream. This function call will work even if the stream is muted.

The given volume should range from 0.0 for silence to 1.0 for as loud as possible. Values outside of this range will be clamped to the nearest value.

If the stream has no audio or is muted, calling this function will still work but it will not have an immediate audible effect. When the stream is unmuted, the new volume setting will take effect.
 

See also

#2023-5-2