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: markheath: If i run dscount = DirectSoundOut.Devices.Count() 3 times it gives different result. thats the problem. (no sound card removed, or installed meanwhile)
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: markheath: If i run dscount = DirectSoundOut.Devices.Count() 3 times it gives different result. thats the problem. (no sound card removed, or installed meanwhile)