Tested code on linux machine --still works fine. I'm thinking the Windows issue has something to do with an audio driver.