Added rate master and divisor. Moved OSS compatibility stuff out of asound.h. Added best rate helpers

This commit is contained in:
Abramo Bagnara 2000-07-06 08:16:56 +00:00
parent 74832704a8
commit 8a50d1ed8f
2 changed files with 4 additions and 1 deletions

View file

@ -254,6 +254,9 @@ static int snd_pcm_plug_setup(void *private, snd_pcm_setup_t *setup)
setup->format = plug->first->src_format;
else
setup->format = plug->last->dst_format;
/* FIXME: this is not exact */
setup->rate_master = setup->format.rate;
setup->rate_divisor = 1;
err = snd_pcm_plug_alloc(plug, setup->frag_size);
if (err < 0)
return err;