summaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-05-06 16:05:36 -0700
committerChris Robinson <[email protected]>2008-05-06 16:05:36 -0700
commit6e86146a25a629cd5f189a2aaa803d0c34a970e4 (patch)
tree3c9a3288a6744044a86023dc08b9815e5ff377dd /Alc/alsa.c
parent49d9695ad95ccbe7f46f3c23c8791e8512f5faa9 (diff)
Prepare the ALSA PCM handle before starting capture
Thanks to Jason Daly for pointing it out
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index a5b71aef..95a1cf6f 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -595,6 +595,7 @@ static void alsa_close_capture(ALCdevice *pDevice)
static void alsa_start_capture(ALCdevice *pDevice)
{
alsa_data *data = (alsa_data*)pDevice->ExtraData;
+ psnd_pcm_prepare(data->pcmHandle);
psnd_pcm_start(data->pcmHandle);
}