Lines Matching refs:live
886 int live = hw->total_samples_captured - audio_pcm_hw_find_min_in (hw);
887 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
888 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
891 return live;
900 int live = hw->total_samples_captured - sw->total_hw_samples_acquired;
903 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
904 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
908 rpos = hw->wpos - live;
920 int samples, live, ret = 0, swlim, isamp, osamp, rpos, total = 0;
925 live = hw->total_samples_captured - sw->total_hw_samples_acquired;
926 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
927 dolog ("live_in=%d hw->samples=%d\n", live, hw->samples);
932 if (!live) {
936 swlim = (live * sw->ratio) >> 32;
1005 int live = smin;
1007 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
1008 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
1011 return live;
1018 int live;
1020 live = audio_pcm_hw_get_live_out2 (hw, &nb_live);
1021 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
1022 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
1025 return live;
1033 int hwsamples, samples, isamp, osamp, wpos, live, dead, left, swlim, blck;
1042 live = sw->total_hw_samples_mixed;
1043 if (audio_bug (AUDIO_FUNC, live < 0 || live > hwsamples)){
1044 dolog ("live=%d hw->samples=%d\n", live, hwsamples);
1048 if (live == hwsamples) {
1050 dolog ("%s is full %d\n", sw->name, live);
1055 wpos = (sw->hw->rpos + live) % hwsamples;
1058 dead = hwsamples - live;
1073 dead = hwsamples - live;
1094 live += osamp;
1252 int live;
1258 live = sw->hw->total_samples_captured - sw->total_hw_samples_acquired;
1259 if (audio_bug (AUDIO_FUNC, live < 0 || live > sw->hw->samples)) {
1260 dolog ("live=%d sw->hw->samples=%d\n", live, sw->hw->samples);
1265 "%s: get_avail live %d ret %lld\n",
1267 live, (((int64_t) live << 32) / sw->ratio) << sw->info.shift
1270 return (((int64_t) live << 32) / sw->ratio) << sw->info.shift;
1275 int live, dead;
1281 live = sw->total_hw_samples_mixed;
1283 if (audio_bug (AUDIO_FUNC, live < 0 || live > sw->hw->samples)) {
1284 dolog ("live=%d sw->hw->samples=%d\n", live, sw->hw->samples);
1288 dead = sw->hw->samples - live;
1291 dolog ("%s: get_free live %d dead %d ret %lld\n",
1293 live, dead, (((int64_t) dead << 32) / sw->ratio) << sw->info.shift);
1343 int live, myfree, nb_live, cleanup_required, prev_rpos;
1345 live = audio_pcm_hw_get_live_out2 (hw, &nb_live);
1347 live = 0;
1350 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
1351 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
1370 if (!live) {
1478 int live, rpos, captured;
1482 captured = live = audio_pcm_hw_get_live_out (hw);
1484 while (live) {
1486 int to_capture = audio_MIN (live, left);
1499 live -= to_capture;