[pulseaudio-discuss] Flat volumes and restoring the app volume

2011-01-30 Thread Gregory Petrosyan
Hi,

Can somebody please explain what flat-volume, actually, is? Strictly
and concisely, but from user's perspective — not mathematically. Like
I can explain what non-flat-volume is to anybody :-) I have googled
quite a bit, but still don't get how it works.

Also, what does m-s-r actually save? Is it volume the app will have
if the system volume will be 100% in case of flat volumes?

I am asking these, because I've managed to make an app restore the
volume properly using ext-stream-restore.h, but when I turn the flat
volume on, behaviour is counter-intuitive to say at least.

Gregory
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Get the 'future' volume of a stream?

2010-12-13 Thread Gregory Petrosyan
Hi everybody,

I am the current maintainer of cmus console music player (and the
author of its PulseAudio output plugin).

Like every audio player, cmus displays the volume control widget.
Nothing unexpected here :-) But, in fact, this control serves dual
purposes: it displays the current playback volume *and* it is used to
indicate/configure the volume before the playback starts.

But the problem is, as it seems to me, that with PA I have no way to
display/configure the volume before the playback starts, if I want to
take advantage of module-stream-restore (pass NULL volume to the
pa_stream_connect_playback, which is strongly recommended). So, I
either store the volume myself and pass it to
pa_stream_connect_playback (which seems not to be the true way), or
I display no volume control at all before the playback starts, which
is kind of a nonsense.

Am I right on this or not, and what is the preferred way to control
the volume with PA?

                Gregory
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] hang when trying to drain empty stream

2009-11-26 Thread Gregory Petrosyan
On Thu, Nov 26, 2009 at 11:44 AM, Colin Guthrie gm...@colin.guthr.ie wrote:
 Please push a bug into Trac so that it's not lost among the many emails when
 he returns.

Already there -- http://pulseaudio.org/ticket/725

Gregory
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] hang when trying to drain empty stream

2009-11-25 Thread Gregory Petrosyan
On Thu, Nov 19, 2009 at 9:54 PM, Gregory Petrosyan
gregory.petros...@gmail.com wrote:
 I believe there is a bug in PA: when trying to drain empty stream
 (newly created, or just after pa_stream_flush()) returned pa_operation
 never completes. Because it's not possible to know in advance if
 a stream is empty, IMO pa_stream_drain should succeed ASAP
 when called on empty stream, and not hang.

Hey, a week has passed, and the bug is still alive!

Gregory
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] hang when trying to drain empty stream

2009-11-19 Thread Gregory Petrosyan
Hi!

I believe there is a bug in PA: when trying to drain empty stream
(newly created, or just after pa_stream_flush()) returned pa_operation
never completes. Because it's not possible to know in advance if
a stream is empty, IMO pa_stream_drain should succeed ASAP
when called on empty stream, and not hang.

Gregory
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss