Use IOBufferDuration instead of deprecated method

We can obtain actual buffer duration on iOS 6.0 onwards without using a
deprecated API.