Topic - MPlayer Slave mode in C

Reply to this topic

Topic Starter Hurdy - Posted on Wednesday, April 22 2009 01:54:57 PM
Hi everyone,

I'm tring to write a C program that opens MPlayer via a pipe using the popen() function.

pointer = popen("mplayer -slave /xxx.mp3", "w");

The only problem is is that this command is made of constant chars, but I want to be able to change the file name that is stored in a string in memory.

How could one pass a string to mplayer to change the media file to play?

Kind regards,