allow to set samplerate/channels from outside.