def setDevice(dev, kind=None):
 if (not hasattr(backend, 'defaultOutput')):
  raise IOError('Attempting to SetDevice (audio) but not supported by the current audio library ({!r})'.format(audioLib))
 if hasattr(dev, 'name'):
  dev = dev['name']
 if (kind is None):
  backend.defaultInput = backend.defaultOutput = dev
 elif (kind == 'input'):
  backend.defaultInput = dev
 elif (kind == 'output'):
  backend.defaultOutput = dev
 elif travisCI:
  return
 else:
  raise TypeError("`kind` should be one of [None, 'output', 'input']not {!r}".format(kind))

def setDevice ( dev , kind = None ) : if ( not hasattr ( backend , 'defaultOutput' ) ) : raise IOError ( 'Attempting to SetDevice (audio) but not supported by the current audio library ({!r})' . format ( audioLib ) ) if hasattr ( dev , 'name' ) : dev = dev [ 'name' ] if ( kind is None ) : backend . defaultInput = backend . defaultOutput = dev elif ( kind == 'input' ) : backend . defaultInput = dev elif ( kind == 'output' ) : backend . defaultOutput = dev elif travisCI : return else : raise TypeError ( "`kind` should be one of [None, 'output', 'input']not {!r}" . format ( kind ) )
sets the device to be used for new streams being created .