如何编写XM音乐文件格式播放器 [英] How to write an XM music file format player

查看:681
本文介绍了如何编写XM音乐文件格式播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我正在寻找,我一​​直在Google中搜索有关XM文件格式,XM音乐文件格式以及XM文件结构格式的信息.但是我没有任何信息.我想写一个XM播放器,我没有头绪,希望我们能给您一点参考信息.

Hello,everyone.I''mlooking for,I have been in a Google search for information on the Xm file format on XM music file format,as well as the XM file structure format.But do not have any information,I want to write an XM player,I have not got a clue,I hope we can give a point of reference information.
Thank you In advance!

推荐答案

如果您不知道从哪里开始,那是一个高级项目.

我建议您从一个可以读取原始波形(PCM)文件并播放它们的播放器开始,作为起点.

然后,当您的播放器运行良好时,尝试插入您的XM代码.等到运行Wave文件播放器时,XM代码对您来说更有意义了.

当我不确定如何从这样一个项目开始时,我将从我理解的部分开始.而且我建立了一个项目,可以使故障排除更加容易.

因此,按照这种思路,如果您在开始XM编码之前就知道播放器可以正常工作,那么在调试XM代码时就不必调试它.您将对该项目的那部分充满信心.

****************************************

P.S.我只是重新阅读了您的帖子.我以为我第一次读到您找到了XM格式信息,但是在重新阅读后,我认为您没有找到它.

我猜想XM是专有格式.但这可能基于现有的编解码器.您可能需要自行解构.您需要在二进制编辑器中查看并确定其类似于什么编解码器.您可以通过将其标头与其他文档编解码器进行比较来完成此操作. XM数据可能被加密了,这会使您的工作更加困难.

当您采用专有格式时,除非您愿意为此付费,否则您不太可能在解码它们方面获得很多帮助.如果格式与标准有很大出入,那么经验丰富的工程师可能要花很多时间.

话虽如此,它可能像MP3文件一样简单,但要进行一些标头更改以使其与标准播放器不兼容.
That''s an advanced project to start with if you don''t already know where to begin.

I would suggest that you start with a player that can read raw wave (PCM) files and play them, as a starting point.

Then when you have that player working well, attempt to plug in your XM code. By the time you get a wave file player running, the XM code will make more sense to you.

When I''m not sure how to start with a project like this one, I begin with the parts I do understand. And I build a project that will make troubleshooting easier.

So in that line of thinking, if you know your player is functional before you start the XM coding, then you won''t have to debug that, while you''re debugging you XM code. You''ll have confidence in that part of the project.

************************************

P.S. I just reread your post. The first time I thought I read that you found the XM format info, but on a reread, I think you don''t.

I''m guessing that XM is a proprietary format. But it''s probably based on an existing CODEC. You may need to deconstruct it on your own. You''ll need to look at in a binary editor and determine what codecs it resembles. you''ll do this by comparing it''s header to other documented codecs. It is possible that the XM data is encrypted, which would make your effort a bit tougher.

When you get into proprietary formats, you''re unlikely to be able to get much help in decoding them, unless you''re willing to pay for it. It can take many hours for an experienced engineer to work them out, if the format deviates much from the standards.

Having said that, it could be as simple as being an MP3 file, with some header changes to make it incompatible with standard players.


这篇关于如何编写XM音乐文件格式播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆