Fixed format plugins insertions in case of setup different from params

This commit is contained in:
Abramo Bagnara 2000-07-11 12:33:42 +00:00
parent 8f18ae95ac
commit 6c5be90f2d
4 changed files with 183 additions and 161 deletions

View file

@ -81,16 +81,16 @@ typedef struct snd_pcm_plug {
size_t frames_alloc;
} snd_pcm_plug_t;
unsigned int snd_pcm_plug_formats(unsigned int formats);
int snd_pcm_plug_slave_format(int format, snd_pcm_params_info_t *slave_info);
unsigned int snd_pcm_plug_formats(unsigned int slave_formats);
int snd_pcm_plug_slave_fmt(int format, snd_pcm_params_info_t *slave_info);
int snd_pcm_plug_slave_rate(unsigned int rate, snd_pcm_params_info_t *slave_info);
int snd_pcm_plug_slave_params(snd_pcm_params_t *params,
int snd_pcm_plug_slave_format(snd_pcm_format_t *format,
snd_pcm_info_t *slave_info,
snd_pcm_params_info_t *slave_params_info,
snd_pcm_params_t *slave_params);
int snd_pcm_plug_format(snd_pcm_plug_t *plug,
snd_pcm_params_t *params,
snd_pcm_params_t *slave_params);
snd_pcm_format_t *slave_format);
int snd_pcm_plug_format_plugins(snd_pcm_plug_t *plug,
snd_pcm_format_t *format,
snd_pcm_format_t *slave_format);
ssize_t snd_pcm_plug_write_transfer(snd_pcm_plug_t *plug, snd_pcm_plugin_channel_t *src_channels, size_t size);
ssize_t snd_pcm_plug_read_transfer(snd_pcm_plug_t *plug, snd_pcm_plugin_channel_t *dst_channels_final, size_t size);