如何播放mp3/mp4文件. [英] How to play mp3/mp4 files.

查看:172
本文介绍了如何播放mp3/mp4文件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发SDK音频播放器上的项目.我现在被要求编写代码来支持.wav文件的歌曲,但是我不知道运行.mp3/.mp4文件的代码,因此您对此一无所知,请告诉我..我现在只需要它..

I am doing project on sdk audio player. I am now suceed to write code to support song of .wav files but i dont know code of running .mp3/.mp4 file so it u know anything about it then please tell me.. i just need it now....

推荐答案

MP3和其他格式的播放需要解码音频,然后将解码后的数据推送到声卡.应用程序开发人员太多了.

我建议您可以使用一些现有的SDK来执行此操作.

1.在Windows上,您可以使用WMPSDK 来播放其他主要格式(前提是系统上提供了该格式的编解码器)

2.您可以使用DirectX 播放许多格式.

3.第二个是libvlc.我没有亲自使用(我打算),但似乎也可以用于音频播放.也有一些托管包装器.
The playback of MP3 and other format need decoding the audio and then pushing the decoded data to the sound card. that is too much of an application developer.

I suggest you can use some of the existing SDKs for doing this.

1. On windows you can use the WMPSDK which will take care of playing other major formats (provided the codec for the format is available on the system)

2. you can use DirectX to play a lot of formats.

3. The 2rd one is libvlc. I have not used it personally(i am planning to) but it seems it could also be used for audio playback. there are some managed wrappers available for it too.


这篇关于如何播放mp3/mp4文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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