关于LINUX命令行应用程序的问题!

vcsongs 2003-02-26 11:37:01
1,LINUX命令行应用程序如何打印,要打印的内容为不同大小和字体的汉字
2,LINUX命令行应用程序如何播放声音文件

那位知道指点一二,给个样例最好不过了,谢谢!
...全文
23 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
vcsongs 2003-03-16
  • 打赏
  • 举报
回复
谢谢各位,结贴.
SophiaWang 2003-03-11
  • 打赏
  • 举报
回复
呵,我也又学了一招!:)
vcsongs 2003-03-11
  • 打赏
  • 举报
回复
谢谢楼上!

分过后给,再帮我看看这个问题如何.
http://expert.csdn.net/Expert/topic/1510/1510295.xml?temp=.413006


to SophiaWang(Angel):
谢谢! :)
gettext 2003-03-11
  • 打赏
  • 举报
回复
play 在 sox-12.17.3-4 里面

# which play
/usr/bin/play
# rpm -qf /usr/bin/play
sox-12.17.3-4

play只是一个脚本,最终调用的还是sox命令。

你想编程序发声音其实也不难,假设你的声音文件soundfile的encodeing是signed word。

fd1 = open("/dev/dsp", .. );
fd2 = open("soundfile",.. );
r = read( fd2, buff, sizeof(buff) );
write( fd1, buff, r );
SophiaWang 2003-03-10
  • 打赏
  • 举报
回复
当发生这种情况时,建议使用如下命令:
whereis play(你要查找的命令)
这样子即可找到!
vcsongs 2003-03-10
  • 打赏
  • 举报
回复
上面的还是没有答案。 再问一个问题。
redhat 8.0里面的play命令的源程序在哪个rpm里面? 谢谢!
SophiaWang 2003-03-10
  • 打赏
  • 举报
回复
嗯,这个问题就不知道了!
Sorry for not help u!
vcsongs 2003-03-10
  • 打赏
  • 举报
回复
to SophiaWang(Angel):
Thank you, but what i want to know is the location of command play's source file. NOT
the command...

Waiting...
vcsongs 2003-03-06
  • 打赏
  • 举报
回复
补充一下: 我是说自己写程序如何做到这些事情? 谢谢!
gettext 2003-03-01
  • 打赏
  • 举报
回复
1, #lp
2, #play
2, #mpg123 *.mp3

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧