Merge "Pull out commonly used constants to <audio_utils/clock.h>"

gugelfrei
Glenn Kasten 6 years ago committed by Android (Google) Code Review
commit 3cb0605ea4

@ -56,8 +56,6 @@ static inline const T &max(const T &x, const T &y) {
return x > y ? x : y;
}
static const int32_t NANOS_PER_SECOND = 1000000000;
static inline nsecs_t framesToNanoseconds(ssize_t frames, uint32_t sampleRate, float speed)
{
return ((double)frames * 1000000000) / ((double)sampleRate * speed);

Loading…
Cancel
Save