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);
> }
>
>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
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list