Better sample source/rate init for tests.