Renamed for congruency two fields

This commit is contained in:
Abramo Bagnara 2000-04-16 15:28:42 +00:00
parent b43320ce20
commit 427a14e32b
6 changed files with 80 additions and 80 deletions

View file

@ -68,10 +68,10 @@ static void convert(snd_pcm_plugin_t *plugin,
}
continue;
}
src = src_voices[voice].addr + src_voices[voice].offset / 8;
dst = dst_voices[voice].addr + dst_voices[voice].offset / 8;
src_step = src_voices[voice].next / 8;
dst_step = dst_voices[voice].next / 8;
src = src_voices[voice].addr + src_voices[voice].first / 8;
dst = dst_voices[voice].addr + dst_voices[voice].first / 8;
src_step = src_voices[voice].step / 8;
dst_step = dst_voices[voice].step / 8;
samples1 = samples;
while (samples1-- > 0) {
goto *copy;
@ -104,11 +104,11 @@ static ssize_t linear_transfer(snd_pcm_plugin_t *plugin,
if (src_voices[voice].addr != NULL &&
dst_voices[voice].addr == NULL)
return -EFAULT;
if (src_voices[voice].offset % 8 != 0 ||
src_voices[voice].next % 8 != 0)
if (src_voices[voice].first % 8 != 0 ||
src_voices[voice].step % 8 != 0)
return -EINVAL;
if (dst_voices[voice].offset % 8 != 0 ||
dst_voices[voice].next % 8 != 0)
if (dst_voices[voice].first % 8 != 0 ||
dst_voices[voice].step % 8 != 0)
return -EINVAL;
}
convert(plugin, src_voices, dst_voices, samples);