有没有一种干净的方法可以在紧凑框架 3.5 中播放 mp3 声音
我使用 p/invoke 方法来播放 wav
声音。 有多种方法可以调用 Windows Media Player 来播放 mp3
声音,但速度慢而且速度慢。 麻烦。
有没有一种简单的方法来播放短 mp3
文件?
这主要用于当您不看屏幕也不听音乐时应用程序提示和声音提示。
谢谢!
I use the p/invoke method to play wav
sounds. There are ways of calling windows media player to play an mp3
sound, but its slow & cumbersome.
Is there an easy way to play a short mp3
file?
This is primarily for application prompting and audible cues when you are not looking at the screen and not music.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您正在寻找播放 mp3 的方法:
If you are looking for a way to play mp3s:
CF Framework 3.5 现在支持播放 .WAV 文件:
命名空间系统.Media.SoundPlayer
用于提示和声音效果的短 WAV 文件甚至可能比 MP3 播放更快,因为它们“可以播放”...
CF Framework 3.5 now includes support for playing .WAV files:
Namespace System.Media.SoundPlayer
Short WAV files for cues and sound-effects might even play faster than MP3s since they're "ready-to-play"...