Program freezes when AudioOutputElement::stateChange() and AudioOutputElement::iStream() are called at same time, looking for a solution.