help.....playing a song



hi
 
i m a student and i want to play a mp3 file at a button click ...
 
i m not understanding how to use the following code ..
as i m working in glade .
 
plz help
 
 
#include<unistd.h>
 
gchar *gs_call[3];
>
>rc = fork ();
>     if (rc == -1) {
>       g_warning ("Can?t fork ()");
>     } else if (rc == 0) {
>       gs_call[0] = "mpg123";
>       gs_call[1] = song_name;
>       gs_call[2] = 0;
>       execvp (gs_call[0], gs_call);
>   }
 
 
regards n thanx
 
shamaila


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