filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.15k stars 451 forks source link

How Can I play sounf on more then one sound cards? #432

Open dewelooper opened 3 years ago

dewelooper commented 3 years ago

Hi, I need to play music from one mp3 on 4 sound cards. No I using "MusicPlayer" class form examples and create 4 instances of them. An then on each I call Open() and Play() ... I think it isnt good way?

Thank you

barrien2 commented 3 years ago

Make sure that if you want to play another mp3, before doing new MusicPlayer do .Stop() and .Dispose() of ISoundOut and .Dispose() of IWaveSource