|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『楼 主』:
开发 & 下载:WPlayer播放器最新版本
使用 LLM 解释/回答一下
说明:这是一个声音播放器,支持AC97声卡,使集成的AC97声卡可以在纯DOS下发声。
WW1)改进了的界面:
2)支持各种数据组合格式
3)支持低于44.1k的数据(虽然效果不好,因为是用软件的办法插值到44.1k后播放,所以效果
不是太好,希望大家能找到更好的办法)
下一步工作计划,能够支持mp3文件播放,增加一个playlist.
Description: This is a sound player that supports AC97 sound cards, enabling the integrated AC97 sound card to make sound in pure DOS.
WW1) Improved interface:
2) Supports various data combination formats
3) Supports data below 44.1k (although the effect is not good because it is interpolated to 44.1k by software for playback, so the effect is not too good. I hope everyone can find a better way)
Next work plan: can support MP3 file playback, add a playlist.
|
|
2004-9-17 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
|
2004-9-17 00:00 |
|
|
mrdeadman
中级用户
  
积分 258
发帖 49
注册 2004-8-29
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
哈哈,升级至1.12版:修正如下:
1,彻底解决总时间显示错误问题,rushon注意了,计算方法应该是TotalTime=wHead.fileSize/wHead.nSamplePerSec;而你写作TotalTime=wHead.dataSize/wHead.nSamplePerSec;所以老显示几百分钟
2,修正单词拼写错误(rushon你好像没改过来噢)
3,printf("Press < + - > to Volume contorl <P> to Pause Other KEY to stop\n"<img src="images/smilies/face-wink.png" align="absmiddle" border="0">;这句话很重要,怎么掉了?我加上去了。
作了全面测试,存在以下问题:
声道问题解决得很好,位数问题还可以,只是8位时声音变小了。频率问题其实还很大,低于22k时,真的像是嘶哑者喉咙在叫。甚至将音量减为0时,还有噪音。我原来解决单声道的办法是将同样的数据送到两个声道,使用的是w_mixing函数而不是w_mixing_stereo,不知rushon是怎么做的,是不是软件插值?我水平低,看不太懂。好像你全都用的w_mixing_stereo函数。
希望rushon再接再厉,解决低频时的问题。
打开附件
Haha, upgraded to version 1.12: Corrections are as follows:
1. Thoroughly solved the problem of incorrect total time display. Rushon, pay attention. The calculation method should be TotalTime = wHead.fileSize / wHead.nSamplePerSec; while you wrote TotalTime = wHead.dataSize / wHead.nSamplePerSec; so it always showed hundreds of minutes.
2. Corrected spelling errors (Rushon, it seems you didn't correct them).
3. The sentence "printf("Press < + - > to Volume contorl <P> to Pause Other KEY to stop\n"); This is very important, how did it get lost? I added it.
Comprehensive testing has been done, and the following problems exist:
The channel problem is well solved, and the bit number problem is okay, but the sound becomes quieter when it is 8-bit. The frequency problem is actually still very big. When it is lower than 22k, it really sounds like a hoarse throat. Even when the volume is reduced to 0, there is still noise. The original way I solved the mono problem was to send the same data to two channels, using the w_mixing function instead of w_mixing_stereo. I don't know how Rushon did it. Is it software interpolation? My level is low, I can't understand it very well. It seems you used the w_mixing_stereo function all the time.
Hope Rushon will make persistent efforts to solve the problem at low frequencies.
Open attachment
|
|
2004-9-17 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
1,彻底解决总时间显示错误问题,rushon注意了,计算方法应该是TotalTime=wHead.fileSize/wHead.nSamplePerSec;而你写作TotalTime=wHead.dataSize/wHead.nSamplePerSec;所以老显示几百分钟========================================================wHead.fileSize 是文件的总长度-4wHead.dataSize 是数据的长度我在测试别的文件都没有问题,呵呵,可能是你的那个录音软件扰的祸。不过改了也好。
2,修正单词拼写错误(rushon你好像没改过来噢)确实是,我是在上班的时间改的。有点着急出新版本,谢谢你的矫正
3,printf("Press < + - > to Volume contorl <P> to Pause Other KEY to stop\n"<img src="images/smilies/face-wink.png" align="absmiddle" border="0">;这句话很重要,怎么掉了?我加上去了。========================================确实是忘了。呵呵。
作了全面测试,存在以下问题:
声道问题解决得很好,位数问题还可以,只是8位时声音变小了。==============================因为8位数据的值肯定比16位的要小。我已经把这个值×16了,可以再修正,因为过大会失真。频率问题其实还很大,低于22k时,真的像是嘶哑者喉咙在叫。甚至将音量减为0时,还有噪音。这个噪声我也找不到原因到目前。因为我现在找不到解决降低播放频率的办法,所以只能把现在的数据取两次然后按照48000来播放。不知道怎么会有噪声。再草造我原来解决单声道的办法是将同样的数据送到两个声道,使用的是w_mixing函数而不是w_mixing_stereo,不知rushon是怎么做的,是不是软件插值?==========================我跟你的办法是一样的。只不把我是再取数据的时候就送好了我水平低,看不太懂。好像你全都用的w_mixing_stereo函数。=============你太谦虚了,其实没有那么高深了,
希望rushon再接再厉,解决低频时的问题。===================最后谢谢你的参与
1. Completely solve the problem of incorrect total time display. Rushon, pay attention. The calculation method should be TotalTime = wHead.fileSize / wHead.nSamplePerSec; while you wrote TotalTime = wHead.dataSize / wHead.nSamplePerSec; so it always shows hundreds of minutes. ======================================================== wHead.fileSize is the total length of the file minus 4. wHead.dataSize is the length of the data. I tested other files and there were no problems. Hehe, maybe it's caused by your recording software. But it's good to change it.
2. Correct the misspelled word (Rushon, it seems you didn't correct it). Indeed, I modified it during working hours. I was a bit anxious to release the new version. Thank you for the correction.
3. printf("Press < + - > to Volume contorl <P> to Pause Other KEY to stop\n"); This sentence is very important. How did it get lost? I added it. ======================================================== Indeed, I forgot. Hehe.
Comprehensively tested, the following problems exist:
The channel problem is solved well, and the bit number problem is okay, but the sound becomes quieter when it's 8-bit. ======================================================== Because the value of 8-bit data must be smaller than that of 16-bit. I have multiplied this value by 16, and it can be corrected again because it will be distorted if it's too large. The frequency problem is actually still very big. When it's lower than 22k, it really sounds like a hoarse person's throat. Even when the volume is reduced to 0, there is still noise. I can't find the reason for this noise so far. Because I can't find a way to solve the problem of reducing the playback frequency now, so I can only take the current data twice and play it according to 48000. I don't know why there is noise. Then, my original way to solve the mono problem was to send the same data to two channels, using the w_mixing function instead of w_mixing_stereo. I don't know how Rushon did it. Is it software interpolation? ======================================================== I did the same as your method. It's just that I sent it well when getting the data. I have low level, so I can't understand it very well. It seems you all use the w_mixing_stereo function. ======================================================== You are too modest. Actually, it's not that complicated.
Hope Rushon makes persistent efforts to solve the problem at low frequencies. ======================================================== Finally, thank you for your participation.
|
|
2004-9-18 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
我剛才在1.12版的基礎上做了多項更新和修改,昇級到了1.13版。更新和修改包括:
1:刪除了一些以前留下來的無用函數;
2:修正了程序中多處顯示信息的拼寫和語法錯誤,並規範化了一些錯誤信息等;
3:對界面上的內容做了一些調整,比如說顯示聲卡信息等;
4:這是最重要的更新:增加了命令行參數或播放文件名支持!比如說:wplay file.wav就可以直接播放file.wav,而不需運行後再手工去輸入(當然,也可以去手工輸入);wplay /?可以顯示幫助信息等。
另外還進行了其它的一些小修改,如播放中按Q鍵可以直接退出程序等。
可以在這兒下載:
打开附件
P.S. 看來我們現在真像GNU開源程序的作者或編輯者呀,不如將此程序以GNU GPL協議發布如何?如果大家都同意的話,還可以加入用wplay -l等命令顯示版權信息的呢。
I just made multiple updates and modifications based on version 1.12 and upgraded to version 1.13. The updates and modifications include:
1: Deleted some useless functions left before;
2: Corrected spelling and grammar errors in multiple places of the program's displayed information, and standardized some error messages, etc.;
3: Made some adjustments to the content on the interface, such as displaying sound card information, etc.;
4: This is the most important update: Added support for command-line parameters or playing file names! For example: wplay file.wav can directly play file.wav without having to run it and then manually enter it (of course, you can also manually enter it); wplay /? can display help information, etc.
In addition, other minor modifications were made, such as pressing the Q key during playback to directly exit the program.
You can download it here:
Open attachment
P.S. It seems that we are really like the authors or editors of GNU open-source programs now. Why not release this program under the GNU GPL license? If everyone agrees, we can also add commands like wplay -l to display copyright information, etc.
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2004-9-18 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
|
2004-9-18 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
wengier 能否解决播放22k的程序出现糟声的问题?
Can wengier solve the problem of noise in programs playing at 22k?
|
|
2004-9-18 00:00 |
|
|
Roy
管理员
          專業島民
积分 4869
发帖 1633
注册 2002-12-10
状态 离线
|
|
2004-9-18 00:00 |
|
|
Roy
管理员
          專業島民
积分 4869
发帖 1633
注册 2002-12-10
状态 离线
|
|
2004-9-18 00:00 |
|
|
mrdeadman
中级用户
  
积分 258
发帖 49
注册 2004-8-29
状态 离线
|
|
2004-9-18 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
好吧,既然大家都支持,我剛才將WPLAY又更新到了1.14版:
1:加入當輸入WPLAY /L時(大小寫可隨意)顯示GNU版權信息。另外增加了一些WPLAY /?的顯示信息;
2:當運行後手工輸入的要播放的文件名是空的時候,自動提示是否退出,按Y則退出,否則返回(如果文件名中輸入exit則不詢問這個問題);
3:發現並修正了1.11-1.13的所有版本中存在的出現某些錯誤信息(如Wrong file type)後因FOR循環而導致繼續運行不正常的現象。
可以在這兒下載到更新後的1.14版:
打开附件
Rushon:關於22K以下的音效問題我也沒有想到什麼解決辦法,不過您可以參考一下Roy上面提供的鏈接。
Well, since everyone supports it, I just updated WPLAY to version 1.14:
1: Added that when entering WPLAY /L (case-insensitive), the GNU copyright information is displayed. Also added some display information for WPLAY /?;
2: When the file name to be played entered manually after running is empty, it automatically prompts whether to exit. Press Y to exit, otherwise return (if exit is entered in the file name, this question is not asked);
3: Discovered and corrected the phenomenon of abnormal continued operation due to the FOR loop after certain error messages (such as Wrong file type) existing in all versions from 1.11 to 1.13.
You can download the updated version 1.14 here:
Open attachment
Rushon: I didn't think of any solution to the sound effect problem below 22K, but you can refer to the link provided by Roy above.
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2004-9-18 00:00 |
|
|
Roy
管理员
          專業島民
积分 4869
发帖 1633
注册 2002-12-10
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
有關decoding library可參考VideoLAN player(支持AAC,AC3/A52,MP3,OGG,FLAC等)http://www.videolan.org/vlc/download-sources.html
For the decoding library, you can refer to VideoLAN player (supports AAC, AC3/A52, MP3, OGG, FLAC, etc.) http://www.videolan.org/vlc/download-sources.html
|

我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
 |
|
2004-9-18 00:00 |
|
|
rushon
初级用户
 
积分 158
发帖 23
注册 2004-9-8
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
to :wengier 希望你能增加一个playlist 的功能,也就是*。lst文本文件有所有播放的文件路径。如果用 wplayer *.lst 可以循环播放里面的歌曲。
to :wengier Hope you can add a playlist function, that is, the *.lst text file has all the file paths of the played files. If you use wplayer *.lst, you can loop play the songs inside.
|
|
2004-9-18 00:00 |
|
|
mrdeadman
中级用户
  
积分 258
发帖 49
注册 2004-8-29
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
升级到1.15版:
1 ,1.14版中输入wplay/?显示为Error: Invalid option in command line.好像'?'并不能与case'?'相匹配,就算改成case 63(63 是?的字符码)也不行,所以我改成了case‘h' 获取帮助信息请用wplay/h
2,1.14中把Rushon的名字写成了ruston,已更正
3,帮助信息有少许修正
Upgrade to version 1.15:
1. In version 1.14, entering wplay/? shows Error: Invalid option in command line. It seems that '?' cannot match case '?', even if changed to case 63 (63 is the character code of?), so I changed it to case 'h'. To get help information, use wplay/h.
2. In 1.14, the name Rushon was written as ruston, which has been corrected.
3. There are minor corrections to the help information.
|
|
2004-9-18 00:00 |
|
|
mrdeadman
中级用户
  
积分 258
发帖 49
注册 2004-8-29
状态 离线
|
|
2004-9-18 00:00 |
|