简体   繁体   English

交叉淡入淡出-获得音频C#.NET Compact Framework的最佳方法?

[英]Crossfading - Best way of getting audio C# .NET Compact Framework?

I'm using .NET Compact Framework 3.5 and I'm wanting to crossfade two tracks of music. 我正在使用.NET Compact Framework 3.5,并且想交叉淡入淡出两个音乐曲目。

The time at which they would crossfade isn't known, the idea is one would loop and something would trigger a crossfade. 他们进行淡入淡出的时间尚不得而知,其想法是会循环播放并且会触发淡入淡出。

I know SoundPlayer can play multiple tracks on top of one another and that (though I've not been able to get it to work), WaveOut is able to control volume (maybe fade?!). 我知道SoundPlayer可以在彼此之上播放多个音轨,而且(尽管我无法使其正常工作),WaveOut可以控制音量(也许淡出吗?!)。

Is there any way of incorporating these functionalites? 有什么方法可以合并这些功能性对象? Thanks 谢谢

the audio capabilities built into .NET CF are quite limited. .NET CF内置的音频功能非常有限。 for serious audio capabilities, you'll need to use a separate library - FMOD is popular for this. 要获得强大的音频功能,您需要使用一个单独的库-FMOD很受欢迎。

.Net CF runs on multiple type of devices with different capabilites. .Net CF可在具有不同功能的多种类型的设备上运行。 Depending on the specific features of your target device, you might be able to use Windows Media Player activex control. 根据目标设备的特定功能,您可能可以使用Windows Media Player Activex控件。 OpenNetCF team has a commercial component allowing to use this activex control from .Net CF. OpenNetCF团队有一个商业组件,允许使用.Net CF中的Activex控件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM