Re: [pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-09 Thread Tanu Kaskinen
On Fri, 2014-05-09 at 18:19 +0500, Ibrar Ahmed wrote: > Ah, sorry I missed that, thanks for your reply. > > > > > Can we change the volume of specified channel, (Right or Left) ? pa_context_set_sink_input_volume() takes a pa_cvolume parameter, which contains separate volumes for each channel.

Re: [pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-09 Thread Ibrar Ahmed
Ah, sorry I missed that, thanks for your reply. Can we change the volume of specified channel, (Right or Left) ? On Fri, May 9, 2014 at 5:53 PM, Tanu Kaskinen wrote: > On Fri, 2014-05-09 at 17:11 +0500, Ibrar Ahmed wrote: > > I want to change the volume after connecting( calling > > pa_strea

Re: [pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-09 Thread Tanu Kaskinen
On Fri, 2014-05-09 at 17:11 +0500, Ibrar Ahmed wrote: > I want to change the volume after connecting( calling > pa_stream_connect_playback) to the stream, should i call > pa_stream_connect_playback again and again whenever i want to change > volume? Did you miss my earlier reply? http://thread.gm

Re: [pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-09 Thread Ibrar Ahmed
I want to change the volume after connecting( calling pa_stream_connect_playback) to the stream, should i call pa_stream_connect_playback again and again whenever i want to change volume? > On 09-May-2014, at 12:38 pm, Rémi Denis-Courmont wrote: > > Le 2014-05-07 23:50, Ibrar Ahmed a écrit :

Re: [pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-09 Thread Rémi Denis-Courmont
Le 2014-05-07 23:50, Ibrar Ahmed a écrit : 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_p

Re: [pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-08 Thread Tanu Kaskinen
On Thu, 2014-05-08 at 15:34 +0500, Ibrar Ahmed wrote: > Is this the right forum to ask these type of question? Yes. > On Thu, May 8, 2014 at 1:50 AM, Ibrar Ahmed > wrote: > I am writing a program to play audio using 'libpulse' on > linux. I have successfully played the audio, but

Re: [pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-08 Thread Ibrar Ahmed
Is this the right forum to ask these type of question? On Thu, May 8, 2014 at 1:50 AM, Ibrar Ahmed wrote: > 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 >

[pulseaudio-discuss] How to change the volume in PulseAudio (libpulse)

2014-05-07 Thread Ibrar Ahmed
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,