From 16b3789b687a3002b80a38f58c07b7a46ac89c6c Mon Sep 17 00:00:00 2001 From: hackbard Date: Sat, 15 May 2004 17:51:58 +0000 Subject: [PATCH] incredible work done outside in the garden! :) --- src/audio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/audio.c b/src/audio.c index 8698ee9..bd47644 100644 --- a/src/audio.c +++ b/src/audio.c @@ -15,3 +15,9 @@ int audio_init(t_audio *audio) { return A_ERROR; } + if(ioctl(audio->fd,SNDCTL_DSP_GETCAPS,&(audio->cap))==-1) { + perror("[audio] ioctl call"); + return A_ERROR; + } + + -- 2.39.2