madplay使用

管理madplay的主程序,包括播放,暂停播放,恢复播放,停止播放
system("madplay north.mp3 &");//利用system函数调用madplay播放器播放*.mp3音乐

system("madplay north.mp3 -r &");//循环播放:参数-r

system("killall -9 madplay");//利用system函数调用killall命令将madplay终止掉 
          
system("killall -STOP madplay &");//利用system函数调用killall命令将madplay暂停

system("killall -CONT madplay &");//利用system函数调用killall命令恢复madplay的播放

 

kill -l , man kill Here is a list of available signals, their numbers, and some commentary on them, from the file , which should be considered the official source of this information. SIGHUP 1 hangup SIGINT 2 interrupt SIGQUIT 3 quit SIGILL 4 illegal instruction (not reset when caught) SIGTRAP 5 trace trap (not reset when caught) SIGABRT 6 used by abort SIGEMT 7 EMT instruction SIGFPE 8 floating point exception SIGKILL 9 kill (cannot be caught or ignored) SIGBUS 10 bus error SIGSEGV 11 segmentation violation SIGSYS 12 bad argument to system call SIGPIPE 13 write on a pipe with no one to read it SIGALRM 14 alarm clock SIGTERM 15 software termination signal from kill SIGURG 16 urgent condition on IO channel SIGSTOP 17 sendable stop signal not from tty SIGTSTP 18 stop signal from tty SIGCONT 19 continue a stopped process SIGCHLD 20 to parent on child stop or exit SIGTTIN 21 to readers pgrp upon background tty read SIGTTOU 22 like TTIN for output if (tp->t_local 
  
 
  
mips:
#define SIGHUP   1 
#define SIGINT   2 
#define SIGQUIT   3 
#define SIGILL   4 
#define SIGTRAP   5 
#define SIGIOT   6 
#define SIGABRT   SIGIOT 
#define SIGEMT   7
#define SIGFPE   8 
#define SIGKILL   9 
#define SIGBUS   10 
#define SIGSEGV   11 
#define SIGSYS   12
#define SIGPIPE   13 
#define SIGALRM   14 
#define SIGTERM   15 
#define SIGUSR1   16 
#define SIGUSR2   17 
#define SIGCHLD   18 
#define SIGCLD   SIGCHLD 
#define SIGPWR   19 
#define SIGWINCH 20 
#define SIGURG   21 
#define SIGIO   22 
#define SIGPOLL   SIGIO 
#define SIGSTOP   23 
#define SIGTSTP   24 
#define SIGCONT   25 
#define SIGTTIN   26 
#define SIGTTOU   27 
#define SIGVTALRM 28 
#define SIGPROF   29 
#define SIGXCPU   30 
#define SIGXFSZ   31
#define SIGRTMIN 32
#define SIGRTMAX _NSIG

你可能感兴趣的:(Linux内核/驱动)