|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『楼 主』:
用wws.c改写了一个可以播放wav声音的程序,请大家测试
使用 LLM 解释/回答一下
折腾了一天,终于可以用这个程序播放wav的歌曲了,能听到声音的那会确实很激动。
但是dos地下的声音也不是那么好听,可能是驱动给的混响效果太差了。
程序写的很粗糙,只支持最简单的没有压缩的wav一种格式,大家凑活着先听听。
毕竟有声音了。
After tossing and turning all day, I finally can use this program to play WAV songs. I was really excited when I could hear the sound. But the sound under DOS isn't that pleasant either. Maybe the reverb effect from the driver is too bad. The program is written very roughly, only supporting the simplest uncompressed WAV format. Everyone just take it and listen for now. After all, there's sound.
|
|
2004-9-14 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
文件格式不正确,或不能为空
=================
??? 为什么老是出现这个错误?斑竹?
The file format is incorrect or it cannot be empty
==============================
??? Why does this error always occur? Moderator?
|
|
2004-9-15 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
沒有傳上來呢。要上傳的話,可以先壓縮成.ZIP或.RAR格式後再上傳,而不能直接用.EXE上傳。
不過DOS下能放WAV的程序很多的,像QV、MPXPLAY之類的都行,而且播放效果也不錯。
衹是許多AC97聲卡似乎沒有DOS驅動程序,結果什麼聲音都沒有。。(MAME除外)
It hasn't been uploaded yet. If you want to upload, you can first compress it into.ZIP or.RAR format and then upload, but you can't upload directly with.EXE.
However, there are many programs that can play WAV under DOS, such as QV, MPXPLAY and so on, and the playback effect is also good.
It's just that many AC97 sound cards seem to have no DOS driver programs, so there is no sound at all.. (except MAME)
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2004-9-15 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
|
2004-9-15 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
|
2004-9-15 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
有谁知道mp3文件的压缩方法和数据格式,这样我想播放 mp3不是个问题,用ac97的声卡
Who knows the compression methods and data formats of MP3 files? Then it won't be a problem for me to play MP3, using an AC97 sound card
|
|
2004-9-15 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
這兒有一些關於MP3文件的格式的介紹,不過是英文的(中文的我找了一下好像沒找到):
http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html
不過DOS下的一些MP3播放器是開放源代碼的,如MPXPLAY就是。您可以參照裡面對MP3格式文件的解碼部分的代碼來完成,或者直接復制裡面的一些相關代碼內容都可以(因為是完全開源的,所以也不存在版權問題)。MPXPLAY最新版的源代碼我已上傳,可以在這兒下載:
打开附件
注:剛才我回到純DOS下試了一下這個WPLAY.EXE,感覺總體上確實還不錯,不過好像衹支持16位的WAV文件而不支持8位的WAV文件呢(放8位的WAV文件時都是雜音)。
Here is an introduction about the format of MP3 files, but it's in English (I couldn't find the Chinese one):
http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html
However, some MP3 players under DOS are open - source, such as MPXPLAY. You can refer to the code for the decoding part of MP3 format files in it to complete, or directly copy some relevant code content in it (since it's completely open - source, there is no copyright issue). The source code of the latest version of MPXPLAY I have uploaded can be downloaded here:
Open the attachment
Note: Just now I went back to pure DOS and tried this WPLAY.EXE. It feels generally quite good, but it seems to only support 16 - bit WAV files and not 8 - bit WAV files (when playing 8 - bit WAV files, there are all noises).
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2004-9-15 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
注:剛才我回到純DOS下試了一下這個WPLAY.EXE,感覺總體上確實還不錯,不過好像衹支持16位的WAV文件而不支持8位的WAV文件呢(放8位的WAV文件時都是雜音)。========================================================斑竹不愧是斑竹,测试的真仔细,单声道和8位的确实没有写进去。今天晚上我写好音量控制,和时间显示,就把源代码传上去,大家一起来使它更完善。
Note: Just now I went back to pure DOS and tried this WPLAY.EXE. I feel that overall it's really not bad, but it seems that it only supports 16-bit WAV files and doesn't support 8-bit WAV files (there's noise when playing 8-bit WAV files). ========================================================The moderator is indeed the moderator, the test is really meticulous. The mono and 8-bit ones were indeed not written in. I will write the volume control and time display tonight, and then upload the source code. Let's all work together to make it more perfect.
|
|
2004-9-15 00:00 |
|
|
mrdeadman
中级用户
  
积分 258
发帖 49
注册 2004-8-29
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
记得当初我编译这个程序时gotomsdos曾发帖向我致敬,现在想来,是在当之有愧,现在我们可以向rushon兄致敬了。下了这个程序我爱不释手,花了半天时间,录制了16种声音,是4种频率(8k,11.025k,22.05k,44.1k),2种声道(单声道,立体声),2种位数(8位,16位)的组合。结果只有1种组合能正常播放,44.1k+16位+立体声。若只把频率降为22.05k,或只把立体声降为单声道,会发现播放的速度很快,但还是能听出些名堂来。其他13种组合则只听到一片噪音,而并不是Wengier所说的16位声音都行。运行过程中,我发现程序其实是能够把文件的各种频率,声道属性检测出来的,可惜播放时频率不能调整,就48khz而已,所以我认为,其实44.1k播放也是不正常的,只不过是近似正常。希望作者继续努力,解决这些问题。也希望作者把源程序贴上来,大家一起研究。另外,请问Wengier老兄,怎么今天打开联盟论坛首页时总会弹出一个dos窗口,一闪就没了,是不是为了搞笑。
I remember that when I was compiling this program, gotomsdos posted a message to pay tribute to me. Now thinking about it, I am really unworthy. Now we can pay tribute to brother rushon. After downloading this program, I love it so much. I spent half a day recording 16 kinds of sounds, which are combinations of 4 kinds of frequencies (8k, 11.025k, 22.05k, 44.1k), 2 kinds of channels (mono, stereo), and 2 kinds of bit depths (8-bit, 16-bit). The result is that only 1 combination can play normally, which is 44.1k + 16-bit + stereo. If I only reduce the frequency to 22.05k, or only reduce stereo to mono, I find that the playback speed is very fast, but I can still hear something. The other 13 combinations only hear a piece of noise, not that all 16-bit sounds are okay as Wengier said. During the running process, I found that the program can actually detect various frequencies and channel attributes of the file. Unfortunately, the frequency cannot be adjusted during playback, it's only 48khz. So I think that actually the playback at 44.1k is also not normal, it's just approximately normal. I hope the author will continue to work hard to solve these problems. I also hope the author will post the source code, so that everyone can study together. By the way, dear brother Wengier, why does the DOS window always pop up and disappear when I open the homepage of the union forum today? Is it for fun.
|
|
2004-9-15 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
谢谢,你的鼓励是我前进的动力,今天晚上我会完善这个程序,让它能够支持多点的格式
Thank you, your encouragement is the driving force for my progress. I will improve this program tonight to make it support more formats.
|
|
2004-9-15 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
mrdeadman:我什麼時候說過衹要是16位聲音都行??我的原話是“不過好像衹支持16位的WAV文件而不支持8位的WAV文件”,是說它在能播放我已試的一部分16位聲音的同時卻並不支持8位聲音,即主要是強調它目前還完全不支持8位聲音這個事實,希望能改進。請不要把這句話的意思曲解為我說所有的16位聲音都能完全正常播放!另外你說的“今天打开联盟论坛首页时总会弹出一个dos窗口,一闪就没了”這個現象我並沒有發現,更不可能是所謂的“为了搞笑”了。rushon:我也向您致敬,祝您能夠順利完善程序!
mrdeadman: When did I say that only 16-bit sounds are acceptable?? My original words were "But it seems that it only supports 16-bit WAV files and does not support 8-bit WAV files", which means that while it can play some of the 16-bit sounds I have tested, it does not support 8-bit sounds, that is, it mainly emphasizes the fact that it currently does not support 8-bit sounds at all and hopes for improvement. Please don't misinterpret the meaning of this sentence as me saying that all 16-bit sounds can play completely normally! The phenomenon you mentioned "When I opened the union forum homepage today, a DOS window always popped up and disappeared in a flash" I didn't find, and it's definitely not "for fun".
rushon: I also pay my respects to you and wish you can improve the program smoothly!
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2004-9-15 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
二位大哥客气了,我其实已经在论坛上逛了好久了,主要是大家提供了这么好的源代码。
You two brothers are too polite. Actually, I've been browsing the forum for a long time. Mainly because everyone has provided such good source codes.
|
|
2004-9-15 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
程序升级:程序版本 V1.01增加了音量加减功能,时间显示功能:问题:上面提到的关于播放的rate不能改变的问题,我始终没有找到解决办法,希望各位能一起找找看。源程序如下:建议:希望大家一起来维护这个程序,让它能够比较成熟的支持wav,mp3,wma 音乐格式,能成为一个比较成熟的FREE软件。 下一步的任务是: 增加一些常用的功能,如快进快退,循环播放一个文件夹,懂算法的朋友可以增加一些音效处理:解决只能播放48000 16 2 的问题。解码mp3功能。
Program upgrade: Program version V1.01 has added volume increase and decrease functions, and time display function: Problem: The problem about the unchangeable playback rate mentioned above, I have always not found a solution, and hope everyone can find it together. The source program is as follows: Suggestion: Hope everyone to maintain this program together, so that it can relatively maturely support wav, mp3, wma music formats, and can become a relatively mature FREE software. The next task is: Add some common functions, such as fast forward and rewind, loop playing a folder, friends who understand algorithms can add some sound effect processing: Solve the problem of only being able to play 48000 16 2. Decode mp3 function.
|
|
2004-9-16 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
打开附件
我的程序代码写的比较乱,又没有养成写注解的好习惯,大家凑活着先看看。
我希望我们以后维护这个版本的时候有必要来养成这样一个好习惯。
呵呵,
Open attachment
My program code is written rather messily, and I haven't developed the good habit of writing comments. Everyone, just take a look for now.
I hope that when we maintain this version in the future, it is necessary to develop such a good habit.
Hehe,
|
|
2004-9-16 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
下了这个程序我爱不释手,花了半天时间,录制了16种声音,是4种频率(8k,11.025k,22.05k,44.1k),2种声道(单声道,立体声),2种位数(8位,16位)的组合。结果只有1种组合能正常播放,44.1k+16位+立体声。若只把频率降为22.05k,或只把立体声降为单声道,会发现播放的速度很快,但还是能听出些名堂来。其他13种组合则只听到一片噪音,而并不是Wengier所说的16位声音都行。===================================希望能够把你手上的测试例子上传上来,主要是 8 16 单双 声道 4种组合。让大家研究一下。
I downloaded this program and loved it. I spent half a day recording 16 kinds of sounds, which are combinations of 4 frequencies (8k, 11.025k, 22.05k, 44.1k), 2 channels (mono, stereo), and 2 bit depths (8-bit, 16-bit). The result is that only 1 combination can play normally, which is 44.1k + 16-bit + stereo. If I only reduce the frequency to 22.05k or only reduce stereo to mono, I find that the playback speed is very fast, but I can still make out some things. The other 13 combinations only hear a lot of noise, and it's not like what Wengier said that all 16-bit sounds work.
==================================================
It is hoped that you can upload the test examples you have, mainly the 4 combinations of 8, 16, mono and stereo channels. Let everyone study.
|
|
2004-9-16 00:00 |
|