Home | History | Annotate | Download | only in audio

Lines Matching defs:in

5  * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
144 // in the buffer, but by the end of the sleep the buffer is considered
147 // On the subsequent out_write(), we measure the elapsed time spent in
149 // thereby accounting for drain in the alsa buffer during mixing.
219 struct stub_stream_in *in = (struct stub_stream_in *)stream;
220 in->last_read_time_us = 0;
251 struct stub_stream_in *in = (struct stub_stream_in *)stream;
257 const bool standby = in->last_read_time_us == 0;
259 0 : now - in->last_read_time_us;
267 in->last_read_time_us = now + sleep_time;
271 // On the subsequent in_read(), we measure the elapsed time spent in
273 // thereby accounting for fill in the alsa buffer during the interim.
424 struct stub_stream_in *in = (struct stub_stream_in *)calloc(1, sizeof(struct stub_stream_in));
425 if (!in)
428 in->stream.common.get_sample_rate = in_get_sample_rate;
429 in->stream.common.set_sample_rate = in_set_sample_rate;
430 in->stream.common.get_buffer_size = in_get_buffer_size;
431 in->stream.common.get_channels = in_get_channels;
432 in->stream.common.get_format = in_get_format;
433 in->stream.common.set_format = in_set_format;
434 in->stream.common.standby = in_standby;
435 in->stream.common.dump = in_dump;
436 in->stream.common.set_parameters = in_set_parameters;
437 in->stream.common.get_parameters = in_get_parameters;
438 in->stream.common.add_audio_effect = in_add_audio_effect;
439 in->stream.common.remove_audio_effect = in_remove_audio_effect;
440 in->stream.set_gain = in_set_gain;
441 in->stream.read = in_read;
442 in->stream.get_input_frames_lost = in_get_input_frames_lost;
444 *stream_in = &in->stream;
449 struct audio_stream_in *in)