madplay播放控制

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

管理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 <sys/signal.h>, 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<OSTOP) SIGPOLL 23 System V name for SIGIO SIGXCPU 24 exceeded CPU time limit SIGXFSZ 25 exceeded file size limit SIGVTALRM 26 virtual time alarm SIGPROF 27 profiling time alarm SIGWINCH 28 window changed SIGLOST 29 resource lost (eg, record-lock lost) SIGUSR1 30 user defined signal 1 SIGUSR2 31 user defined signal 2
 
mips:
#define SIGHUP   1 /* Hangup (POSIX). */
#define SIGINT   2 /* Interrupt (ANSI). */
#define SIGQUIT   3 /* Quit (POSIX). */
#define SIGILL   4 /* Illegal instruction (ANSI). */
#define SIGTRAP   5 /* Trace trap (POSIX). */
#define SIGIOT   6 /* IOT trap (4.2 BSD). */
#define SIGABRT   SIGIOT /* Abort (ANSI). */
#define SIGEMT   7
#define SIGFPE   8 /* Floating-point exception (ANSI). */
#define SIGKILL   9 /* Kill, unblockable (POSIX). */
#define SIGBUS   10 /* BUS error (4.2 BSD). */
#define SIGSEGV   11 /* Segmentation violation (ANSI). */
#define SIGSYS   12
#define SIGPIPE   13 /* Broken pipe (POSIX). */
#define SIGALRM   14 /* Alarm clock (POSIX). */
#define SIGTERM   15 /* Termination (ANSI). */
#define SIGUSR1   16 /* User-defined signal 1 (POSIX). */
#define SIGUSR2   17 /* User-defined signal 2 (POSIX). */
#define SIGCHLD   18 /* Child status has changed (POSIX). */
#define SIGCLD   SIGCHLD /* Same as SIGCHLD (System V). */
#define SIGPWR   19 /* Power failure restart (System V). */
#define SIGWINCH 20 /* Window size change (4.3 BSD, Sun). */
#define SIGURG   21 /* Urgent condition on socket (4.2 BSD). */
#define SIGIO   22 /* I/O now possible (4.2 BSD). */
#define SIGPOLL   SIGIO /* Pollable event occurred (System V). */
#define SIGSTOP   23 /* Stop, unblockable (POSIX). */
#define SIGTSTP   24 /* Keyboard stop (POSIX). */
#define SIGCONT   25 /* Continue (POSIX). */
#define SIGTTIN   26 /* Background read from tty (POSIX). */
#define SIGTTOU   27 /* Background write to tty (POSIX). */
#define SIGVTALRM 28 /* Virtual alarm clock (4.2 BSD). */
#define SIGPROF   29 /* Profiling alarm clock (4.2 BSD). */
#define SIGXCPU   30 /* CPU limit exceeded (4.2 BSD). */
#define SIGXFSZ   31 /* File size limit exceeded (4.2 BSD). */
/* These should not be considered constants from userland. */
#define SIGRTMIN 32
#define SIGRTMAX _NSIG
目录
打赏
0
0
0
0
3
分享
相关文章
在进行CDN流量调度时,要考虑的因素有哪些?
在进行CDN流量调度时,要考虑的因素有哪些?
250 3
【网络连接】ping不通的常见原因+解决方案,如何在只能访问网关时诊断,并修复IP不通的问题
【网络连接】ping不通的常见原因+解决方案,如何在只能访问网关时诊断,并修复IP不通的问题
16008 0
淘宝商品评论数据采集教程丨淘宝商品评论数据接口(Taobao.item_review)
**摘要:** 本教程指导如何使用淘宝(Taobao.item_review)接口采集商品评论。步骤包括注册开发者账号,创建应用获取API密钥,发送请求(如num_iid, page, size参数),解析JSON或XML返回数据,并遵循使用规则与安全注意事项。接口允许获取商品评论列表,含评论内容、评论者信息等,适用于数据分析和市场研究。务必保护API密钥并遵守使用政策。
|
4月前
|
重磅!2025年中科院预警期刊名单正式发布!
中国科学院文献情报中心定期发布《国际期刊预警名单》,旨在防范学术不端和不当出版行为。2025年最新名单聚焦两大问题:一是引用操纵、论文工厂等破坏科研生态的行为;二是中国作者占比过高或APC费用不合理,影响学术成果国际化传播。自2022年起,预警名单调整至年初发布,便于科研人员规划投稿。名单结合定量数据与专家评估,动态反映期刊风险。被列预警期刊可能影响职称评审及科研经费认可,建议优先选择中科院分区表推荐期刊,警惕快速代发陷阱,并关注期刊官网声明。未来,强化学术自律和技术工具应用将助力科研规范化,推动中国学术走向全球。
340 0
秒懂Dubbo接口(原理篇)
【4月更文挑战第25天】秒懂Dubbo接口(原理篇)
529 3
秒懂Dubbo接口(原理篇)
Nginx 常用的负载均衡算法
【10月更文挑战第22天】不同的负载均衡算法各有特点和适用场景。在实际应用中,需要根据具体的业务需求、服务器性能和网络环境等因素来选择合适的算法。
288 3
云原生之旅:Kubernetes 集群的搭建与实践Python 编程入门:从零基础到编写实用脚本
【8月更文挑战第30天】在数字化转型的大潮中,云原生技术以其弹性、可扩展性及高效运维能力成为企业IT架构升级的关键。本文将通过实际操作演示如何在本地环境搭建一个简易的Kubernetes集群,带你领略云原生的魅力所在。从集群规划到服务部署,每一步都是对云原生理念的深刻理解和应用。让我们共同探索,如何通过Kubernetes集群的搭建和运维,提升业务灵活性和创新能力。
PyTorch 在自然语言处理中的应用案例研究
【8月更文第27天】PyTorch 是一个强大的开源机器学习框架,它为开发者提供了构建和训练深度学习模型的能力。在自然语言处理(NLP)领域,PyTorch 提供了一系列工具和库,使开发者能够快速地实现和测试新的想法。本文将介绍如何使用 PyTorch 来解决常见的 NLP 问题,包括文本分类和机器翻译,并提供具体的代码示例。
219 2
Ubuntu安装gcc 以及g++
这篇博客介绍了在Ubuntu系统中安装gcc和g++编译器的步骤,包括解决安装过程中可能遇到的问题,如锁文件冲突,并提供了一些安装GCC和G++的命令和技巧。
285 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等

登录插画

登录以查看您的控制台资源

管理云资源
状态一览
快捷访问