diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-23 17:12:07 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-23 17:12:07 +0000 |
commit | ffe69a6240de9e6bb56b9b729b8133fb323cee80 (patch) | |
tree | 0e15912d318c516fb7b61aa04a77a055784afbb0 /rMD-exp/src/opendev.c | |
parent | 21f5377d66e8c8166e2b061d46a438cdb3ca45a5 (diff) |
no hang on open device patch
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@113 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/opendev.c')
-rw-r--r-- | rMD-exp/src/opendev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rMD-exp/src/opendev.c b/rMD-exp/src/opendev.c index 9f8aa17..7eb5d2b 100644 --- a/rMD-exp/src/opendev.c +++ b/rMD-exp/src/opendev.c @@ -40,7 +40,7 @@ snd_pcm_t *OpenDev(const char *pcm_dev,unsigned int *channels,unsigned int *freq snd_pcm_hw_params_alloca(&hwparams); snd_pcm_uframes_t buffsize=4096; - if (snd_pcm_open(&mhandle, pcm_dev, SND_PCM_STREAM_CAPTURE, 0x0002)<0){ + if (snd_pcm_open(&mhandle, pcm_dev, SND_PCM_STREAM_CAPTURE, SND_PCM_ASYNC)<0){ fprintf(stderr, "Couldn't open PCM device %s\n", pcm_dev); return NULL; } |