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-08-01 23:15
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to make an MP3 player program run on bare metal without an operating system? Please give advice View 1,963 Replies 6
Original Poster Posted 2006-08-21 19:44 ·  中国 江苏 无锡 电信
新手上路
Credits 10
Posts 3
Joined 2006-07-30 20:17
20-year member
UID 59524
Gender Male
Status Offline
Want to make a program, put it on a virtual machine for experimentation. It can control hardware devices by itself without an operating system. What kind of idea is this? Hope to get an answer
Floor 2 Posted 2006-08-21 19:46 ·  中国 江苏 无锡 电信
新手上路
Credits 10
Posts 3
Joined 2006-07-30 20:17
20-year member
UID 59524
Gender Male
Status Offline
Floor 3 Posted 2006-08-22 10:46 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
You can connect the iPod to the audio cable and play it without booting up~ haha~~

In fact, there are many Live CDs to choose from for booting the bare machine to play multimedia~ There are too many, mostly Linux kernels

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 4 Posted 2006-08-22 13:16 ·  中国 江苏 无锡 电信
新手上路
Credits 10
Posts 3
Joined 2006-07-30 20:17
20-year member
UID 59524
Gender Male
Status Offline
Can you be more specific?/?/?/?What is a Live CD?/?/?/?And I'm making a program, why does it relate to connecting to an IPOD
Floor 5 Posted 2006-09-25 14:14 ·  中国 河南 洛阳 联通
中级用户
Credits 245
Posts 43
Joined 2003-08-05 00:00
22-year member
UID 8139
Gender Male
Status Offline
Using a bare machine to play MP3 is both wasteful and troublesome!!!!! It's not as good as an MP3 player!!!!!
Floor 6 Posted 2006-09-25 21:12 ·  中国 湖南 长沙 电信
中级用户
★★
Credits 282
Posts 126
Joined 2006-05-17 22:29
20-year member
UID 55724
Status Offline
How do you access MP3 files?

1. How to access the disk:
Usually the BIOS encapsulates disk operations (INT13h), so it's very simple for us to use.
But now it's bare metal, you have to operate the hard disk controller yourself, send control commands according to the ATA specification, and also set up the DMA chip to achieve batch data transmission.
If you find the disk too complicated and want to use Flash ROM, maybe it can be simplified, but the next problem cannot be avoided.


2. How to access files:
The disk itself can only understand sectors.
The file system is a function provided by the operating system.
You have to analyze the sectors according to the FAT file system format (or other file systems: NTFS, Ext2, Ext3...) to be able to perform file operations.
(Even if you use Flash ROM, generally still need to use the FAT file system format to store MP3 files)


Also, how do you make the speaker sound?
Before 1995, Creative Labs' Sound Blaster cards were very famous, so the sound cards under DOS at that time were compatible with it at the I/O port level. Since Windows 95 came out, because of the concept of drivers, manufacturers can freely design hardware, and there is no longer a specification at the I/O port level. Or you can use AC97, but AC97 involves a lot of content about modern chip sets (such as the PCI architecture). And AC97 was originally designed to reduce costs, and many functions need to be implemented by programming software.


When you are writing an audio playback program, timing control is very important, so you also need to program the 8253 timer chip.


This is almost writing a small operating system
人类存在的目的就是试图理解人类为何存在
Floor 7 Posted 2006-09-25 21:16 ·  中国 湖南 长沙 电信
中级用户
★★
Credits 282
Posts 126
Joined 2006-05-17 22:29
20-year member
UID 55724
Status Offline
Does anyone understand the compression algorithm of MPEG Audio Layer III?
(An MP3 file is a file that only stores compressed data of MPEG Audio Layer III, so it is simply called MP3)


I have read quite a few MPEG materials
But they are all not detailed enough about audio compression
So I haven't understood it yet

I want to ask the owner if there is any audio compression material
人类存在的目的就是试图理解人类为何存在
Forum Jump: