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
141 // in the buffer, but by the end of the sleep the buffer is considered
144 // On the subsequent out_write(), we measure the elapsed time spent in
146 // thereby accounting for drain in the alsa buffer during mixing.
216 struct stub_stream_in *in = (struct stub_stream_in *)stream;
217 in->last_read_time_us = 0;
248 struct stub_stream_in *in = (struct stub_stream_in *)stream;
254 const bool standby = in->last_read_time_us == 0;
256 0 : now - in->last_read_time_us;
264 in->last_read_time_us = now + sleep_time;
268 // On the subsequent in_read(), we measure the elapsed time spent in
270 // thereby accounting for fill in the alsa buffer during the interim.
428 struct stub_stream_in *in;
431 in = (struct stub_stream_in *)calloc(1, sizeof(struct stub_stream_in));
432 if (!in)
435 in->stream.common.get_sample_rate = in_get_sample_rate;
436 in->stream.common.set_sample_rate = in_set_sample_rate;
437 in->stream.common.get_buffer_size = in_get_buffer_size;
438 in->stream.common.get_channels = in_get_channels;
439 in->stream.common.get_format = in_get_format;
440 in->stream.common.set_format = in_set_format;
441 in->stream.common.standby = in_standby;
442 in->stream.common.dump = in_dump;
443 in->stream.common.set_parameters = in_set_parameters;
444 in->stream.common.get_parameters = in_get_parameters;
445 in->stream.common.add_audio_effect = in_add_audio_effect;
446 in->stream.common.remove_audio_effect = in_remove_audio_effect;
447 in->stream.set_gain = in_set_gain;
448 in->stream.read = in_read;
449 in->stream.get_input_frames_lost = in_get_input_frames_lost;
451 *stream_in = &in->stream;
455 free(in);
461 struct audio_stream_in *in)