The issue is with wrong input_device_index
in input stream. Index = 1 is 9 CABLE Input (VB-Audio Virtual C, MME (0 in, 2 out) which is a audio-out port not an input port. Try giving Index = 0 for 3 CABLE Output (VB-Audio Virtual , MME (2 in, 0 out). This worked in my case.