Fix assertion failure.

We assert SampleRate() > 0, which isn't true while we're spinning waiting for
SampleRate() to stop being 0.  So, just use get_sample_rate() instead.
Litter code with s'more assertions.