NAudio是否支持Mac OSX [英] Will NAudio support Mac OSX

查看:115
本文介绍了NAudio是否支持Mac OSX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我正在尝试使用NAudio在Windows操作系统的应用程序中播放.wav和.mp3文件.

Now I am trying to use NAudio to play .wav and .mp3 files in my application for Windows Operating system.

此NAudio是否支持Mac OS X?

Will this NAudio support Mac OS X?

推荐答案

NAudio包含许多用于Windows函数的互操作包装.如果您正在使用NAudio播放MP3文件,则可能会使用WaveOut(使用Windows waveOut API)和WaveFormatConversionStream(使用Windows ACM API),因此答案是否定的,即使在MacOS上也无法使用您使用单声道.找到跨平台音频API会更好.

NAudio contains a lot of interop wrappers for Windows functions. You are likely to be using WaveOut (which uses the Windows waveOut APIs) and WaveFormatConversionStream (which uses the Windows ACM APIs) if you are playing MP3 files with NAudio, so the answer is no, this won't work on MacOS, even if you use Mono. You would be better off finding a cross-platform audio API.

这篇关于NAudio是否支持Mac OSX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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