Open the sound device for audio output. Definition at line 65 of file audio_output_oss.c. 00066 { 00067 const char *dev; 00068 00069 /* Open the audio device */ 00070 dev = config_getopt("audio.output.oss.device"); 00071 if ((dev_fd = open(dev, O_WRONLY)) == -1) { 00072 g_printerr(_("Cannot open audio device \"%s\".\n"), dev); 00073 return (-1); 00074 } 00075 00076 #if defined(BUILD_VOLUME) && defined(BUILD_OSS3_MIXER) 00077 /* Open the mixer device */ 00078 dev = config_getopt("audio.output.oss.mixer"); 00079 mix_fd = open(dev, O_RDWR); 00080 #endif /* BUILD_VOLUME && BUILD_OSS3_MIXER */ 00081 00082 return (0); 00083 }
Here is the call graph for this function:
![]() |
1.6.3