China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 03:40
中国DOS联盟论坛 » DOS媒体世界 & 网络技术 (多媒体室) » AC97 DOS wav/mp3 playing program View 3,198 Replies 4
Original Poster Posted 2008-10-11 15:31 ·  中国 台湾 高雄市 中华电信
初级用户
Credits 68
Posts 17
Joined 2008-03-02 14:38
18-year member
UID 111866
Gender Male
Status Offline
AC97 playback program under DOS for .WAV/.MP3, supports Intel ICH? And VIA 868/8233 and some SIS and AMD AC97 chips.

http://upload.cn-dos.net/img/919.zip

The AC97 control of this program is referenced from the WSS.C program, and the MP3 decoder is modified from the almp3 library in the allegro library (www.allegro.cc)

This is what I accepted the commission for, for a game platform exclusive to a certain TV Game company (using Intel 852). The final thing to develop is an AC97 Sound library using djgpp with the allegro library. This playback program is just to verify the function.

When this program is played on an Intel ICH motherboard, it can correctly set the samples rate (44.1K), but on VIA 868/8233, the samples rate cannot be adjusted and can only be played at 48000, which will make the music play faster.

Some people will ask why not write an SB-compatible driver. My answer is impossible. If your motherboard does not provide an SB-compatible mode, it is absolutely impossible to write an SB-compatible driver.

The reason is that the standard Control I/O of SB is assumed to be 0x220, and all control codes will be sent to this port address. If the motherboard has no compatible SB controller to process at this address, there will be no action at all. Also, IRQ/DMA and TSR are all easy to achieve, but.... still no negotiation... If the motherboard does not provide an SB-compatible mode
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
DOSforever +8 2008-10-12 16:20
Floor 2 Posted 2008-10-12 16:20 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Floor 3 Posted 2008-11-25 22:04 ·  中国 上海 东方有线
新手上路
Credits 10
Posts 3
Joined 2006-05-06 22:03
20-year member
UID 55062
Gender Male
Status Offline
Floor 4 Posted 2008-12-16 14:54 ·  中国 江西 南昌 电信
初级用户
Credits 46
Posts 25
Joined 2008-11-05 20:08
17-year member
UID 130109
Gender Male
Status Offline
Although I don't understand, I'll support it.
Floor 5 Posted 2009-02-07 17:08 ·  中国 天津 联通
新手上路
Credits 2
Posts 1
Joined 2009-02-06 18:08
17-year member
UID 138206
Gender Male
Status Offline
I saw this post earlier, I wouldn't have gone around such a big bend.
Forum Jump: