index of sink attached to stream

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

 



cal wrote:
> [...] use pa_stream_get_index() to get the sink index,
> then pa_context_set_sink_volume_by_index() to set the volume.
> First time through, the sink index comes up as 0, and
> everything works nicely.
> 
> Then the application exits playback mode. The stream and
> context appear to be disconnecting correctly. Next time the
> app enters playback, the sink index has been incremented,
> hence it's invalid. It increments each time you exit and
> re-enter playback. [...]

Good news, pa_stream_get_device_index() works, pa_stream_get_index()
doesn't.

cheers.




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

  Powered by Linux