Commit 2b194ac8 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winealsa: Silence buffer on allocation.

parent b9e8284a
......@@ -224,6 +224,7 @@ static int DSDB_CreateMMAP(IDsDriverBufferImpl* pdbi)
ERR("Can't map sound device for direct access: %s\n", snd_strerror(err));
return DSERR_GENERIC;
}
snd_pcm_format_set_silence(format, areas->addr, pdbi->mmap_buflen_frames);
err = snd_pcm_mmap_commit(pcm, ofs, avail);
pdbi->mmap_buffer = areas->addr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment