问题描述
大家好我有它通过从不同的UDP端口的多个线程同时接收WAV数据的应用程序:
Hi All I have an application which receives simultaneously wav data through multiple threads from different UDP ports:
-
是否有可能发挥所有在同一时间收到WAV数据,同时,利用波形输出API?
Is it possible to play all received wav data at same time, simultaneously, using Wave Out API?
是否有可能发挥所有在同一时间收到WAV数据,同时,使用n音讯?不n音讯的对象是线程安全的?
Is it possible to play all received wav data at same time, simultaneously, using NAudio? does NAudio objects thread safe?
说戏同时我的意思情况下,当一个文件的媒体播放器和一些在YouTube上播放在同一时间播放,你可以听到在同一时间两个声音从扬声器:
saying play simultaneously I mean case when a file played in media player and something in YouTube played at the same time and you can hear both sound from your speakers at the same time:
任何帮助或提示,将不胜感激。先谢谢了。
Any help or hint would be appreciated. Thanks in advance.
推荐答案
是的,你可以用waveout的多个实例(每个流)做到这一点,或者你可以与单一waveout的(与MixingSampleProvider EG)做到这一点,自己混了。
Yes, you can do it with multiple instances of WaveOut (one for each stream), or you can do it with a single WaveOut and mix it yourself (e.g. with the MixingSampleProvider)
这篇关于同时放多个播放.wav文件与n音讯或Win API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!