I’m having a problem with using AudioIODevice as an input. I can select and use the Primary Sound Capture Driver and all is well. However if i select any other input device, the buffers are always NULL in the callback. There is no error on opening the device.
Are you opening channels numbered above 1? If so the buffer array could have null for the first two channels, and the pointers would be beyond that at the indexes that match their channel number.
If i go into control panel and set my default recording device to the on board sound, and select Primary sound capture driver in my app, it works. If i select the on board sound directly in the app, no dice. Same goes for the other sound card in my computer.
Could be a naming problem - because DSound’s rubbish, the only way to match an input and output device is by looking at their names.
If you step into the code that opens the device, it should be fairly obvious what goes wrong - any more info you could give me by looking at that would help.