[ios] - add proper logging
- calc and set the ca buffer duration based on the samplerate