Lines Matching refs:live
955 int live = hw->total_samples_captured - audio_pcm_hw_find_min_in (hw); in audio_pcm_hw_get_live_in() local
956 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) { in audio_pcm_hw_get_live_in()
957 dolog ("live=%d hw->samples=%d\n", live, hw->samples); in audio_pcm_hw_get_live_in()
960 return live; in audio_pcm_hw_get_live_in()
964 int live, int pending) in audio_pcm_hw_clip_out() argument
967 int len = audio_MIN (left, live); in audio_pcm_hw_clip_out()
991 int live = hw->total_samples_captured - sw->total_hw_samples_acquired; in audio_pcm_sw_get_rpos_in() local
994 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) { in audio_pcm_sw_get_rpos_in()
995 dolog ("live=%d hw->samples=%d\n", live, hw->samples); in audio_pcm_sw_get_rpos_in()
999 rpos = hw->wpos - live; in audio_pcm_sw_get_rpos_in()
1011 int samples, live, ret = 0, swlim, isamp, osamp, rpos, total = 0; in audio_pcm_sw_read() local
1016 live = hw->total_samples_captured - sw->total_hw_samples_acquired; in audio_pcm_sw_read()
1017 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) { in audio_pcm_sw_read()
1018 dolog ("live_in=%d hw->samples=%d\n", live, hw->samples); in audio_pcm_sw_read()
1023 if (!live) { in audio_pcm_sw_read()
1027 swlim = (live * sw->ratio) >> 32; in audio_pcm_sw_read()
1092 int live = smin; in audio_pcm_hw_get_live_out() local
1094 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) { in audio_pcm_hw_get_live_out()
1095 dolog ("live=%d hw->samples=%d\n", live, hw->samples); in audio_pcm_hw_get_live_out()
1098 return live; in audio_pcm_hw_get_live_out()
1108 int hwsamples, samples, isamp, osamp, wpos, live, dead, left, swlim, blck; in audio_pcm_sw_write() local
1117 live = sw->total_hw_samples_mixed; in audio_pcm_sw_write()
1118 if (audio_bug (AUDIO_FUNC, live < 0 || live > hwsamples)){ in audio_pcm_sw_write()
1119 dolog ("live=%d hw->samples=%d\n", live, hwsamples); in audio_pcm_sw_write()
1123 if (live == hwsamples) { in audio_pcm_sw_write()
1125 dolog ("%s is full %d\n", sw->name, live); in audio_pcm_sw_write()
1130 wpos = (sw->hw->rpos + live) % hwsamples; in audio_pcm_sw_write()
1133 dead = hwsamples - live; in audio_pcm_sw_write()
1141 dead = hwsamples - live; in audio_pcm_sw_write()
1159 live += osamp; in audio_pcm_sw_write()
1394 int live; in audio_get_avail() local
1400 live = sw->hw->total_samples_captured - sw->total_hw_samples_acquired; in audio_get_avail()
1401 if (audio_bug (AUDIO_FUNC, live < 0 || live > sw->hw->samples)) { in audio_get_avail()
1402 dolog ("live=%d sw->hw->samples=%d\n", live, sw->hw->samples); in audio_get_avail()
1409 live, (((int64_t) live << 32) / sw->ratio) << sw->info.shift in audio_get_avail()
1412 return (((int64_t) live << 32) / sw->ratio) << sw->info.shift; in audio_get_avail()
1417 int live, dead; in audio_get_free() local
1423 live = sw->total_hw_samples_mixed; in audio_get_free()
1425 if (audio_bug (AUDIO_FUNC, live < 0 || live > sw->hw->samples)) { in audio_get_free()
1426 dolog ("live=%d sw->hw->samples=%d\n", live, sw->hw->samples); in audio_get_free()
1430 dead = sw->hw->samples - live; in audio_get_free()
1435 live, dead, (((int64_t) dead << 32) / sw->ratio) << sw->info.shift); in audio_get_free()
1485 int live, free, nb_live, cleanup_required, prev_rpos; in audio_run_out() local
1487 live = audio_pcm_hw_get_live_out (hw, &nb_live); in audio_run_out()
1489 live = 0; in audio_run_out()
1492 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) { in audio_run_out()
1493 dolog ("live=%d hw->samples=%d\n", live, hw->samples); in audio_run_out()
1512 if (!live) { in audio_run_out()
1525 played = hw->pcm_ops->run_out (hw, live); in audio_run_out()
1620 int live, rpos, captured; in audio_run_capture() local
1624 captured = live = audio_pcm_hw_get_live_out (hw, NULL); in audio_run_capture()
1626 while (live) { in audio_run_capture()
1628 int to_capture = audio_MIN (live, left); in audio_run_capture()
1641 live -= to_capture; in audio_run_capture()