Here is the code
Dim dscount As Integer = 0
dscount = DirectSoundOut.Devices.Count()
dscount value is 8. the correct value is 4.
if i see in watch window and evaluate expression " DirectSoundOut.Devices.Count() " then it gives integer and value 4.
What is wrong?
Comments: how do you know what the correct value should be? Maybe directsound thinks there are 8 devices? What happens if you do DirectSoundOut.Devices.ToList().Count
Dim dscount As Integer = 0
dscount = DirectSoundOut.Devices.Count()
dscount value is 8. the correct value is 4.
if i see in watch window and evaluate expression " DirectSoundOut.Devices.Count() " then it gives integer and value 4.
What is wrong?
Comments: how do you know what the correct value should be? Maybe directsound thinks there are 8 devices? What happens if you do DirectSoundOut.Devices.ToList().Count