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.14k stars 450 forks source link

ERROR: Could not find a channel matrix for specified channelmasks #440

Open pmsobrado opened 3 years ago

pmsobrado commented 3 years ago

Hi, I'm trying to use this app:

https://github.com/DarthAffe/KeyboardAudioVisualizer

That seems to use this library. I'm getting this error:

Could not find a channel matrix for specified channelmasks.

StackTrace:
   en CSCore.DSP.ChannelMatrix.Factory.GetMatrix(ChannelMask from, ChannelMask to)
   en CSCore.DSP.ChannelMatrix.GetMatrix(ChannelMask from, ChannelMask to)
   en CSCore.FluentExtensions.ToStereo(IWaveSource input)
   en KeyboardAudioVisualizer.AudioCapture.CSCoreAudioInput.Initialize()
   en KeyboardAudioVisualizer.AudioProcessing.AudioVisualizationFactory.InitializeInstance()
   en KeyboardAudioVisualizer.AudioProcessing.AudioVisualizationFactory.Initialize()
   en KeyboardAudioVisualizer.App.OnStartup(StartupEventArgs e)

I have a quadraphonic setup, if I configure it as stereo on realtek console, it works fine.

I think this quadraphonic issue has been fixed but I don't have any updated dll and I have no idea how to compile this.

Any info/help? Thanks.

filoe commented 3 years ago

Please show us the WaveFormat of the IWaveSource passed to ToStereo. Especially the ChannelMask property.

pmsobrado commented 3 years ago

Never mind, I wouldn't know how to do that anyway. As I said, I'm not using this library, but a third-party app I'm trying to use.

Anyway, I edited the dll and added the changes of one of the pull requests here to make it work with quadraphonic setups.

Thanks anyway.