Definition: deviceByMode(table arg1, mode) -> table ret Description: not sure. possibly to find audio devices by capability