[pulseaudio-discuss] voulme control

Lennart Poettering lennart at poettering.net
Wed Feb 10 17:10:29 PST 2010


On Tue, 09.02.10 10:39, Gian Lorenzo Meocci (glmeocci at gmail.com) wrote:

> Hi all,
> 
> 
> I have soume problem to control audio volume.
> I am using:
> 
> pa_cvolume a;
> a.channels = channels;
> a.values[0] = PA_VOLUME_MUTED;
> a.values[1] = PA_VOLUME_MUTED;
> 
> if(pa_cvolume_valid(&a))
> 	qDebug() << "VALID";
> pa_cvolume_mute(&a, channels);
> 
> 
> but volume remain set NORMAL why???

pa_cvolume is simple a struct containing volume values. You can fill
them with any data you want. To actually change the audio stream you
need to apply them to a device or a stream or suchlike.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list