Hello,
i am using the MixingSampleProvider for multiple Inputs.
```
BufferedWaveProvider dummy = new BufferedWaveProvider(new WaveFormat(48000, 16, 1));
MixingSampleProvider ss = new MixingSampleProvider(WaveFormat.CreateIeeeFloatWaveFormat(48000, 1));
ss.AddMixerInput(dummy);
WaveOut waveOut = new WaveOut();
waveOut.Init(ss);
waveOut.Play();
```
undefinied error while waveoutopen.interop
```
I think the floatWaveFormat is the reason, the same Code above works fine without the MixingSampleProvider.
waveOut.Init(dummy);
waveOut.Play();
```
But when i use DirectSound as waveOut both Codes are ist working fine.
Why?
Comments: Hello, something are wrong with the waveformat: public static WaveFormat CreateIeeeFloatWaveFormat(int sampleRate, int channels) { WaveFormat wf = new WaveFormat(); wf.waveFormatTag = WaveFormatEncoding.IeeeFloat; wf.channels = (short)channels; wf.bitsPerSample = 32; wf.sampleRate = sampleRate; wf.blockAlign = (short) (4*channels); wf.averageBytesPerSecond = sampleRate * wf.blockAlign; wf.extraSize = 0; return wf; } the winmm waveout.open api return 1. For expermentaion, i changed wf.waveFormatTag = WaveFormatEncoding.IeeeFloat; to wf.waveFormatTag = WaveFormatEncoding.PCM; then no error retuns. So what going on?
i am using the MixingSampleProvider for multiple Inputs.
```
BufferedWaveProvider dummy = new BufferedWaveProvider(new WaveFormat(48000, 16, 1));
MixingSampleProvider ss = new MixingSampleProvider(WaveFormat.CreateIeeeFloatWaveFormat(48000, 1));
ss.AddMixerInput(dummy);
WaveOut waveOut = new WaveOut();
waveOut.Init(ss);
waveOut.Play();
```
undefinied error while waveoutopen.interop
```
I think the floatWaveFormat is the reason, the same Code above works fine without the MixingSampleProvider.
waveOut.Init(dummy);
waveOut.Play();
```
But when i use DirectSound as waveOut both Codes are ist working fine.
Why?
Comments: Hello, something are wrong with the waveformat: public static WaveFormat CreateIeeeFloatWaveFormat(int sampleRate, int channels) { WaveFormat wf = new WaveFormat(); wf.waveFormatTag = WaveFormatEncoding.IeeeFloat; wf.channels = (short)channels; wf.bitsPerSample = 32; wf.sampleRate = sampleRate; wf.blockAlign = (short) (4*channels); wf.averageBytesPerSecond = sampleRate * wf.blockAlign; wf.extraSize = 0; return wf; } the winmm waveout.open api return 1. For expermentaion, i changed wf.waveFormatTag = WaveFormatEncoding.IeeeFloat; to wf.waveFormatTag = WaveFormatEncoding.PCM; then no error retuns. So what going on?