使用Windows内置MP3德codeR播放音频? [英] Use Windows built in MP3 decoder to play audio?

查看:107
本文介绍了使用Windows内置MP3德codeR播放音频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从C做我或C ++使用MP3德codeR以来的Windows Media Player 6.1?

How do I from C or C++ use the MP3 decoder supposedly built in with Windows since Windows Media Player 6.1?

我想播放MP3文件,而无需依赖于任何第三方库,如例如LAME.DLL。

I want to play an mp3 file without having to depend on any other third party library such as for instance LAME.DLL.

我更新的问题,以更好地适应我得到了答案,因为我喜欢他们很多。 <一href=\"http://stackoverflow.com/questions/8125234/how-to-access-raw-de$c$cd-audio-data-using-windows-built-in-mp3-de$c$cr\">Related问题。

推荐答案

您可以控制​​音频频道(为了使其发挥任何东西,包括MP3)与mciSendString的 http://msdn.microsoft.com/en-us/library/ms709492%28VS.85%29.aspx

You can control an audio channel (in order to make it play anything, including MP3) with mciSendString http://msdn.microsoft.com/en-us/library/ms709492%28VS.85%29.aspx

下面是一个例子(它在C#中,但它的原理基本相同):

Here's an example (it's in C#, but it's basically the same principle):

<一个href=\"http://social.msdn.microsoft.com/forums/en-US/Vsex$p$pssvcs/thread/152f0149-a62a-446d-a205-91256da7845d\" rel=\"nofollow\">http://social.msdn.microsoft.com/forums/en-US/Vsex$p$pssvcs/thread/152f0149-a62a-446d-a205-91256da7845d

下面是在C同样的原则:

Here is the same principle in C:

http://www.daniweb.com/software-development / C / code / 268167

这篇关于使用Windows内置MP3德codeR播放音频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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