|
wj1987
新手上路

积分 10
发帖 3
注册 2006-7-30
状态 离线
|
『楼 主』:
如何不用操作系统,让MP3播放器程序在裸机上运行????望赐教
使用 LLM 解释/回答一下
想做个程序,放在虚拟机上做实验.它不需要操作系统就能够自己控制硬件设备,这是一种什么思路?望解答
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
|
|
2006-8-21 19:44 |
|
|
wj1987
新手上路

积分 10
发帖 3
注册 2006-7-30
状态 离线
|
|
2006-8-21 19:46 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
可以把 iPod 接到 音频线就可以不开机播放了~笑~~
其实有很多 Live CD 可以选择用来作为裸机启动放多媒体的~太多了,Linux内核居多
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'>" |
|
2006-8-22 10:46 |
|
|
wj1987
新手上路

积分 10
发帖 3
注册 2006-7-30
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
能具体些吗/?/?/?/?Live CD 是什么啊/?/?/?/?还有我是做个程序,,则么会扯到连接 IPOD
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
|
|
2006-8-22 13:16 |
|
|
ddctczy
中级用户
  
积分 245
发帖 43
注册 2003-8-5
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
用裸机放MP3既浪费以麻烦!!!!!
不如MP3播放器好用!!!!!
Using a bare machine to play MP3 is both wasteful and troublesome!!!!! It's not as good as an MP3 player!!!!!
|
|
2006-9-25 14:14 |
|
|
zyl910
中级用户
  
积分 282
发帖 126
注册 2006-5-17
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
请问你怎么访问MP3文件?
1.怎么访问磁盘:
平时BIOS封装了磁盘操作(INT13h),所以我们用起来很简单
而现在是裸机,你得自己去操作硬盘控制器,按照ATA规范发送控制命令,还得对DMA芯片进行设置以实现批量数据传输
如果你觉得磁盘太复杂,想用Flash ROM的话,也许能简化,但下一个问题无法回避
2.怎么访问文件:
磁盘本身只能理解扇区
文件系统是操作系统提供的功能
你得根据FAT文件系统格式(或其他文件系统:NTFS、Ext2、Ext3...)去分析扇区,这才能进行文件操作
(就算你是用Flash ROM, 一般还是得使用FAT文件系统格式来存储mp3文件)
还有你怎么让音响发音?
以前(1995前)创新公司的声霸卡很有名,所以那时DOS下的声卡都在IO端口层次与之兼容。此从Windows95一出,由于有了驱动程序概念,厂家可以自由设计硬件,再也没有IO端口层次的规范了。或者你可以用AC97,但AC97牵涉到很多关于现代芯片组的很多内容(如PCI体系)。而且当初设计AC97是为了减少成本,不少功能需要编程软件实现。
当你在写音频播放程序时,时序控制很重要,所以还得对8253计时器芯片进行编程
这差不多是在写一个小型操作系统
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
|

人类存在的目的就是试图理解人类为何存在 |
|
2006-9-25 21:12 |
|
|
zyl910
中级用户
  
积分 282
发帖 126
注册 2006-5-17
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
有谁看懂了 MPEG音频第三层 的压缩算法?
(mp3文件就是只存放 MPEG音频第三层 压缩数据的文件,所以简称为mp3)
我看了不少MPEG资料
可都对音频压缩讲得不详细
所以现在还没看懂
想问问楼主有没有音频压缩资料
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
|

人类存在的目的就是试图理解人类为何存在 |
|
2006-9-25 21:16 |
|