![]() |
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-09-27 05:14 |
47,813 topics / 349,918 posts / today 0 new / 48,276 members |
| DOS开发编程 & 发展交流 (开发室) » [Original]MIDI Racing Car (Pure DOS C Source Code) |
| Printable Version 3,908 / 18 |
| Floor1 GOTOmsdos | Posted 2007-02-28 14:40 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
Finally added MIDI music to the small racing game I wrote before!
(Need to use HUGE mode, compile with BC) No MIDI in XP DOS window, only works in pure DOS.. Please try it out... There is source code.... http://zhenlove.com.cn/cndos/fileup/files/midiWavCar5.zip [ Last edited by GOTOmsdos on 2007-3-6 at 01:11 PM ] |
|
| Floor2 electronixtar | Posted 2007-02-28 14:50 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
| Floor3 GOTOmsdos | Posted 2007-02-28 14:58 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
Thanks a lot..
It would be even better if someone can implement the loop playback... If implemented, post the code.. Looking forward.. [ Last edited by GOTOmsdos on 2007-2-28 at 02:59 PM ] |
|
| Floor4 Kinglion | Posted 2007-03-01 00:18 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
Support original posts, learned.
|
|
| Floor5 zhgwbzhd | Posted 2007-03-01 22:46 |
| 高级用户 Posts 187 Credits 506 | |
|
Not bad, support original.
|
|
| Floor6 zhgwbzhd | Posted 2007-03-01 22:51 |
| 高级用户 Posts 187 Credits 506 | |
|
I think the loop playback can be considered as follows:
1. First measure the playback time of the music. 2. Use the BIOS clock oscillation to calculate the running time of the program. 3. After the last playback is completed, play the next one. |
|
| Floor7 GOTOmsdos | Posted 2007-03-02 01:17 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
The program originally had a loop playback function, but the loop of that MIDI file was invalid. Later, when the MIDI file was changed, it worked. I don't know the reason.
Just updated the program again, added the function to select and play MIDI files, and both entering XXX and XXX.MID are okay. But a strange phenomenon occurred: For example, if the MIDI C file is included but not used in the main C file, an overflow phenomenon will appear during the program operation. If it is used, there is no problem. So, I had to cancel the original function of only playing games without playing MIDI. |
|
| Floor8 GOTOmsdos | Posted 2007-03-03 13:36 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
Updated
New features: 1 Realize loop playback 2 When racing, press the 'z' key to stop or play the music... [ Last edited by GOTOmsdos on 2007-3-3 at 01:52 PM ] |
|
| Floor9 GOTOmsdos | Posted 2007-03-04 15:36 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
Update:
1 Option to continue playing at the end can be selected., 2 The sluggish problem caused by BC compilation is solved. Successfully compiled with TC2, and this problem is resolved... |
|
| Floor10 GOTOmsdos | Posted 2007-03-05 14:42 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
Update:
1 New volume adjustment 2 New speed adjustment 3 Multi - color mileage display 4 Screen display operation 5 Improved code efficiency |
|
| Floor11 GOTOmsdos | Posted 2007-03-06 13:14 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
Update 1 Synchronize display of adjusted timely status
|
|
| Floor12 pcuser80 | Posted 2007-03-07 12:08 |
| 初级用户 Posts 50 Credits 136 | |
|
This needs to be supported...
|
|
| Floor13 henrya2 | Posted 2007-03-19 07:52 |
| 中级用户 Posts 171 Credits 486 | |
| Floor14 BWSkyer | Posted 2007-03-22 10:42 |
| 中级用户 Posts 180 Credits 367 From 重庆 | |
|
There are so many codes, it's really impressive to be able to write such a program.
|
|
| Floor15 wzsunlight | Posted 2007-03-22 17:33 |
| 初级用户 Posts 52 Credits 107 | |
|
Bookmarked
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |