Home | History | Annotate | Download | only in audio

Lines Matching refs:samples

804                        int samples, struct mixeng_volume *vol)
808 (void) samples;
957 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
958 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
973 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
974 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
983 return hw->samples + rpos;
990 int samples, live, ret = 0, swlim, isamp, osamp, rpos, total = 0;
993 rpos = audio_pcm_sw_get_rpos_in (sw) % hw->samples;
996 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
997 dolog ("live_in=%d hw->samples=%d\n", live, hw->samples);
1001 samples = size >> sw->info.shift;
1007 swlim = audio_MIN (swlim, samples);
1014 isamp = hw->samples - rpos;
1029 rpos = (rpos + isamp) % hw->samples;
1072 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
1073 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
1086 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
1087 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
1098 int hwsamples, samples, isamp, osamp, wpos, live, dead, left, swlim, blck;
1105 hwsamples = sw->hw->samples;
1109 dolog ("live=%d hw->samples=%d\n", live, hwsamples);
1121 samples = size >> sw->info.shift;
1125 swlim = audio_MIN (swlim, samples);
1225 return sw->hw->samples << sw->hw->info.shift;
1330 if (audio_bug (AUDIO_FUNC, live < 0 || live > sw->hw->samples)) {
1331 dolog ("live=%d sw->hw->samples=%d\n", live, sw->hw->samples);
1354 if (audio_bug (AUDIO_FUNC, live < 0 || live > sw->hw->samples)) {
1355 dolog ("live=%d sw->hw->samples=%d\n", live, sw->hw->samples);
1359 dead = sw->hw->samples - live;
1370 static void audio_capture_mix_and_clear (HWVoiceOut *hw, int rpos, int samples)
1381 n = samples;
1383 int till_end_of_hw = hw->samples - rpos2;
1397 rpos2 = (rpos2 + to_write) % hw->samples;
1402 n = audio_MIN (samples, hw->samples - rpos);
1404 mixeng_clear (hw->mix_buf, samples - n);
1421 if (audio_bug (AUDIO_FUNC, live < 0 || live > hw->samples)) {
1422 dolog ("live=%d hw->samples=%d\n", live, hw->samples);
1459 if (audio_bug (AUDIO_FUNC, hw->rpos >= hw->samples)) {
1460 dolog ("hw->rpos=%d hw->samples=%d played=%d\n",
1461 hw->rpos, hw->samples, played);
1562 int left = hw->samples - rpos;
1575 rpos = (rpos + to_capture) % hw->samples;
1622 printf("audio timer: min_diff=%6.2g max_diff=%6.2g avg_diff=%6.2g samples=%d\n",
2076 hw->samples = 4096 * 4;
2077 hw->mix_buf = audio_calloc (AUDIO_FUNC, hw->samples,
2080 dolog ("Could not allocate capture mix buffer (%d samples)\n",
2081 hw->samples);
2087 cap->buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift);
2090 "(%d samples, each %d bytes)\n",
2091 hw->samples, 1 << hw->info.shift);