Hi I am trying to make a small program playing different streams. A part of the program is to control the volume from the application while playing the stream. I have found two methods for controlling the volumes. - Setting the volume on the sink using pa_context_set_sink_volume_by_index. This method works, but I wont to set the volume pr. stream, not pr. device. - Setting the volume using a similar method used in the application pavucontrol. I have tried this with little success.
First i used pa_ext_stream_restore_write() but nothing happened so I added a call back function to see what went from. >From the callback function i get the error PA_ERR_ACCESS (Access Denied) I then tried to perform a pa_ext_stream_restore_read. The callback function returned with the expected data in the structure pa_ext_stream_restore_info. No problem with this. So why do the pa_ext_stream_restore_write gets the access denied? The same user can use the pavucontrol application with no problem (The user is in the group pulseaudio) Or is there a more direct method changing the volume during playing? Anders _______________________________________________ pulseaudio-discuss mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
