mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Added rate master and divisor. Moved OSS compatibility stuff out of asound.h. Added best rate helpers
This commit is contained in:
parent
74832704a8
commit
8a50d1ed8f
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue