aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-07-02 20:50:12 -0700
committerChris Robinson <[email protected]>2009-07-02 20:50:12 -0700
commit5460e85c40b1883b91ca763b88dc014f0d64b705 (patch)
tree6711aed5661b823c87025d763855f5a1d5487030 /Alc/alsa.c
parent432f0ba34cf2bbf1d73472cd69cfce2c0fa9c8f8 (diff)
Set the right access mode for non-mmap capture
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index aabe7226..f194b130 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -651,7 +651,7 @@ open_alsa:
if((i=psnd_pcm_hw_params_any(data->pcmHandle, p)) < 0)
err = "any";
/* set interleaved access */
- if(err == NULL && (i=psnd_pcm_hw_params_set_access(data->pcmHandle, p, SND_PCM_ACCESS_MMAP_INTERLEAVED)) < 0)
+ if(err == NULL && (i=psnd_pcm_hw_params_set_access(data->pcmHandle, p, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0)
err = "set access";
/* set format (implicitly sets sample bits) */
if(err == NULL && (i=psnd_pcm_hw_params_set_format(data->pcmHandle, p, data->format)) < 0)