avoid crash with missing device

what():  Error in function boost::math::round<f>(f): Value -inf can not be represented in the target integer type.
 ... in resampler_cc::set_rate (this=0xa19550, rate=inf) at ../dsp/resampler_xx.cpp:84