Lines Matching full:samples
172 void *samples; in TEST_F() local
175 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F()
176 ASSERT_NE(samples, NULL); in TEST_F()
183 snd_pcm_format_set_silence(params->format, samples, in TEST_F()
185 it = samples; in TEST_F()
192 write_res = snd_pcm_writei(handle, samples, params->rate * params->time); in TEST_F()
196 free(samples); in TEST_F()
203 * of bytes. In the interleaved mode the buffer will contain samples in the following order:
211 void *samples; in TEST_F() local
214 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F()
215 ASSERT_NE(samples, NULL); in TEST_F()
222 snd_pcm_format_set_silence(params->format, samples, in TEST_F()
224 read_res = snd_pcm_readi(handle, samples, params->rate * params->time); in TEST_F()
227 it = (unsigned char *)samples; in TEST_F()
234 free(samples); in TEST_F()