exceptions to ensure correct format and samplerate in place