mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
avoid useless silencing
This commit is contained in:
parent
a616524fff
commit
968cea235b
1 changed files with 1 additions and 1 deletions
|
|
@ -604,7 +604,7 @@ static int snd_pcm_multi_mmap_data(snd_pcm_t *pcm, void **buffer, size_t bsize A
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
setup = &handle->setup;
|
setup = &handle->setup;
|
||||||
{
|
if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
|
||||||
snd_pcm_channel_area_t areas[setup->format.channels];
|
snd_pcm_channel_area_t areas[setup->format.channels];
|
||||||
err = snd_pcm_mmap_get_areas(handle, areas);
|
err = snd_pcm_mmap_get_areas(handle, areas);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue