Page 1 of 1

Adjusting volume in VLC using a C-program

Posted: 25 May 2005 15:34
by pete^
Hi, I am a newbie programmer and I have written a C-program that open sound and video files in VLC(Using CreateProcess). I wonder how I can use the C-program to control the volume level in VLC. Do I use the console with the rc interface? How do I communicate between the C-program and the VLC console?

thanks in advance

pete

Posted: 01 Jun 2005 17:37
by zorglub
Hello,

If you use the --rc-host 127.0.0.1:port command line option, you should be able to send commands to the rc interface using a tcp socket connected to 127.0.0.1:port (socket(), connect() and send() calls in C)

Posted: 01 Jun 2005 21:09
by pete^
It finally worked, thanks :)

pete