static BOOL ALSA_IsThere(void) { int retval; #ifdef MIKMOD_DYNAMIC if (ALSA_Link()) return 0; #endif retval=(alsa_cards_mask())?1:0; #ifdef MIKMOD_DYNAMIC ALSA_Unlink(); #endif return retval; }
static int ALSA_Init(void) { #ifdef HAVE_SSE2 /* TODO : Detect SSE2, then set md_mode |= DMODE_SIMDMIXER;*/ #endif #ifdef MIKMOD_DYNAMIC if (ALSA_Link()) { _mm_errno=MMERR_DYNAMIC_LINKING; return 1; } #endif return ALSA_Init_internal(); }
static BOOL ALSA_IsThere(void) { snd_pcm_subformat_mask_t *ptr = NULL; BOOL retval; #ifdef MIKMOD_DYNAMIC if (ALSA_Link()) return 0; #endif retval = (alsa_pcm_subformat_mask_malloc(&ptr) == 0) && (ptr != NULL); free(ptr); #ifdef MIKMOD_DYNAMIC ALSA_Unlink(); #endif return retval; }
static BOOL ALSA_IsThere(void) { int retval; #ifdef MIKMOD_DYNAMIC if (ALSA_Link()) return 0; #endif #ifdef OLD_ALSA retval=(alsa_cards_mask())?1:0; #else { snd_pcm_subformat_mask_t * ptr; retval = alsa_pcm_subformat_mask_malloc(&ptr); retval = retval || ptr; free(ptr); ptr = NULL; } #endif #ifdef MIKMOD_DYNAMIC ALSA_Unlink(); #endif return retval; }