added input ip check,
added check sound device index