CB-7547 Fixes audio recording on windows platform

Fix for https://issues.apache.org/jira/browse/CB-7547