[pulseaudio-discuss] How to prevent certain applications from changing recording volume?

2018-05-17 Thread Sven-Hendrik Haase
Hello,

I would like to prevent certain applications from changing my recording
levels. I had a look at all the modules and none of them seem to do what I
want. I also searched the net far and wide about this but still can't find
anything to do this.

Basically, I'd like to know whether an easy way to accomplish this already
exists or whether a new module to handle this case would have to be written.

Sven
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Detecting success/error in cli protocol?

2018-05-17 Thread Tomaž Šolc

(apologies for sending an incomplete mail earlier)

Hi

is there a way to detect that a CLI command has succeeded or failed when
using the socket interface offered by module-cli-protocol-unix?

Specifically I'm currently interested in the "play-file" command (which 
seems to be only accessible over the CLI interface). If the command 
fails because the daemon can't read the file, there is no error message 
returned back through the socket. Any error is only written to syslog.


In general I don't see any way of getting back the success/error status 
of a command. pulse-cli-syntax man page does not mention anything in 
this regard. "pacmd" also does not signal failures through its exit code.


I see that individual handlers in cli-command.c (including 
pa_cli_command_play_file) return -1 on error, but this status seems to 
be lost somewhere down the line. Is see that in line_callback() in cli.c 
the return value of pa_cli_command_execute_line() is ignored.


Does anyone have any thoughts on how proper error handling could be 
implemented in the cli interface? I would be happy to work on a patch to 
fix this.


Best regards
Tomaž
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] Detecting success/errors in cli protocol?

2018-05-17 Thread Tomaž Šolc

Hi

is there a way to detect that a CLI command has succeeded or failed when 
using

___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss