How to change the volume in PulseAudio (libpulse)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am writing a program to play audio using 'libpulse' on linux. I have
successfully played the audio, but need to know how to change the volume. I
am able to start the stream using

v = PA_VOLUME_NORM;
pa_cvolume_set(&m_lcvolume, 1, v);
pa_stream_connect_playback(s, NULL, &attr, PA_STREAM_NOFLAGS, &m_lcvolume, NULL)

with pacific volume but need to know how to change the volume after
connecting to stream. I don't want to call pa_stream_connect_playback
function again and again to change the volume.

-- 
Ibrar Ahmed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140508/a1595a8e/attachment.html>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux