From: hackbard Date: Sat, 15 May 2004 17:51:58 +0000 (+0000) Subject: incredible work done outside in the garden! :) X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=16b3789b687a3002b80a38f58c07b7a46ac89c6c;p=my-code%2Fivac.git incredible work done outside in the garden! :) --- 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; + } + +