Searched refs:sample_rate_hz (Results 1 – 2 of 2) sorted by relevance
116 static void fill_audio_buf_sin(int16_t *buf, int length_us, int frequency_hz, int sample_rate_hz) in fill_audio_buf_sin() argument118 const int sine_period_samples = sample_rate_hz / frequency_hz; in fill_audio_buf_sin()119 const unsigned int num_samples = (length_us * sample_rate_hz) / USEC_PER_SEC; in fill_audio_buf_sin()
203 static void fill_audio_buf_sin(int16_t *buf, int length_us, int frequency_hz, int sample_rate_hz) in fill_audio_buf_sin() argument205 const uint32_t sine_period_samples = sample_rate_hz / frequency_hz; in fill_audio_buf_sin()206 const size_t num_samples = (length_us * sample_rate_hz) / USEC_PER_SEC; in fill_audio_buf_sin()