help.....playing a song
- From: Shamaila Khalid <shamaila khalid gmail com>
- To: scherfa web de, gtk-list gnome org
- Cc:
- Subject: help.....playing a song
- Date: Wed, 18 Jan 2006 12:35:55 +0500
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]