![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-13 02:35 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS媒体世界 & 网络技术 (多媒体室) » Development & Download: Latest version of WPlayer player |
| Printable Version 12,824 / 44 |
| Floor1 rushon | Posted 2004-09-17 00:00 |
| 初级用户 Posts 23 Credits 158 | |
|
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. |
|
| Floor2 rushon | Posted 2004-09-17 00:00 |
| 初级用户 Posts 23 Credits 158 | |
| Floor3 mrdeadman | Posted 2004-09-17 00:00 |
| 中级用户 Posts 49 Credits 258 | |
|
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 |
|
| Floor4 rushon | Posted 2004-09-18 00:00 |
| 初级用户 Posts 23 Credits 158 | |
|
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. |
|
| Floor5 Wengier | Posted 2004-09-18 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
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. |
|
| Floor6 rushon | Posted 2004-09-18 00:00 |
| 初级用户 Posts 23 Credits 158 | |
|
Firmly support
|
|
| Floor7 rushon | Posted 2004-09-18 00:00 |
| 初级用户 Posts 23 Credits 158 | |
|
Can wengier solve the problem of noise in programs playing at 22k?
|
|
| Floor8 Roy | Posted 2004-09-18 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
|
Regarding Resampling...... You can refer to Shibatch SSRC http://shibatch.sourceforge.net/download/ssrc-1.29.zip
|
|
| Floor9 Roy | Posted 2004-09-18 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
|
There is also a Noise sharping filter for SSRC
http://shibatch.sourceforge.net/download/dmaker.0.1.tgz |
|
| Floor10 mrdeadman | Posted 2004-09-18 00:00 |
| 中级用户 Posts 49 Credits 258 | |
|
Undoubtedly support
|
|
| Floor11 Wengier | Posted 2004-09-18 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
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. |
|
| Floor12 Roy | Posted 2004-09-18 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
|
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
|
|
| Floor13 rushon | Posted 2004-09-18 00:00 |
| 初级用户 Posts 23 Credits 158 | |
|
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.
|
|
| Floor14 mrdeadman | Posted 2004-09-18 00:00 |
| 中级用户 Posts 49 Credits 258 | |
|
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. |
|
| Floor15 mrdeadman | Posted 2004-09-18 00:00 |
| 中级用户 Posts 49 Credits 258 | |
|
Too confused, actually didn't upload it. Now here it is Open attachment
|
|
| 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |