Make samplerate an explicitly-passed variable in the effects framework.

This avoids make the effects framework depend on control objects and prevents
possible sample-rate changes during effect processing.

TESTED=existing tests pass, and sanity-checked effects and sample rate changes.
read CO directly
remove unneeded function.
remove new in audio callback thread.
remove unused member
outdated comment
Merge pull request #322 from ywwg/effects-explicit-samplerate

Make samplerate an explicitly-passed variable in the effects framework.
Merge branch 'master' into slipmode_fix
remove unnecessary atomic calls
Merge branch 'master' into slipmode_fix
unbreak the build with an ugly double-cast
rename deref to remove confusion with QAtomicInt::dref()
fix more load_atomic calls
correct fix
Merge branch 'master' into slipmode_fix

Conflicts:
	src/engine/enginebuffer.cpp