使用DirectSound播放MP3音频文件 [英] Playing MP3 audiofile using DirectSound

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

问题描述

大家好,

我想知道,如何编写可以利用"DirectSound"技术播放我的MP3音频文件的代码.

我无法弄清楚,也不想使用内置MediaPlayer,我想使用一种全新的分离方式来播放音频声音.


等待您的想法,
此致
Safi

Hello Guys,

I wish to know, how can I write a code that can utilize "DirectSound" Technologies to play my MP3 audio files.

I couldn''t figure it out, and I don''t wanna use the Built-in MediaPlayer, I want to use a whole new separated way of playing Audio Sound.


Awaiting your Ideas,
Regards,
Safi

推荐答案

我不认为DirectSound可以处理MP3格式-因此,您必须先将MP3压缩,解压缩然后再播放

请参见此处 [
I don''t think DirectSound handles MP3 format - so you would have to take the MP3, decompress it then play it

See here[^] for one way of doing so...


有一个名为naudio的开源.net库,可以提供很多功能,包括效果.
检查
.
there is an opensource .net library called naudio which can provide lot of functionality including effects.
check this out.


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

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