解码mp3音频数据 [英] decoding the mp3 audio data

查看:75
本文介绍了解码mp3音频数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我一直在阅读有关mp3文件结构的文章,现在创建了一个玩具程序,实际上是c ++中的类,该程序将读取mp3文件的标签(v1和v2),标头,框架等.我的下一个计划是到下一个级别,即创建一个简单的mp3音频播放器(mp3音频播放器类).不过,我有一个问题,我还没有读过任何有关如何解码mp3音频数据以及如何将其流式传输到扬声器的文章.然后,我将寻求任何可以帮助我满足我的这种需求的帮助.对于任何人都可以做出的贡献或见解,我将深表感谢.
顺便说一句,我不想​​在Windows 7上使用Visual Studio 2010编译器,尽管我不想为此目的使用其内置的媒体播放器. =)
非常感谢,谢谢. =)

good day everyone,
I''ve been reading articles about the mp3 file structure and now creating a toy program, actually a class in c++, that would read the mp3 files tags(v1 and v2), header, frames, etc. My next plan is to bring this to the next level, that is, to create a simple mp3 audio player(mp3 audio player class). I have one problem though, i haven''t read any article on how to decode the mp3 audio data and how to stream it out to my speakers. I would then ask any help that could help me fulfill this need of mine. And I would be very thankful for any contribution or insights that anyone could contribute.
By the way, I''m using the visual studio 2010 compiler on windows 7, though I don''t want to use its built-in media player for this purpose. =)
Thanks a lot and godspeed. =)

推荐答案

也许您可以将可用的C源代码用于MPEG3.我在这里找到了ISO mp3来源,但从未尝试过: http://www.mp3-tech.org/programmer/decoding .html [ ^ ].

—SA
Perhaps you could use available C source code for MPEG3. I found ISO mp3 sources here, never tried them: http://www.mp3-tech.org/programmer/decoding.html[^].

—SA


如果您的计算机上有mp3解码编解码器,则可以使用acmStreamConvert API将其转换为内存中的wave.然后使用waveOutWrite API将其流式传输到扬声器.
If you have an mp3 decode codec on your machine, you can use the acmStreamConvert API to convert it to wave, in memory. Then use the waveOutWrite API to stream it to the speakers.


这篇关于解码mp3音频数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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