constructor doesn't  return a value
switch unit and samplerate