]> hackdaworld.org Git - my-code/ivac.git/commitdiff
incredible work done outside in the garden! :)
authorhackbard <hackbard>
Sat, 15 May 2004 17:51:58 +0000 (17:51 +0000)
committerhackbard <hackbard>
Sat, 15 May 2004 17:51:58 +0000 (17:51 +0000)
src/audio.c

index 8698ee9c763828a028d0c8c496eb7fb51df2b2c0..bd4764491e07195b18056f261f09c576f24b7b00 100644 (file)
@@ -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;
+  }
+
+