示例#1
0
文件: SBCBLST.C 项目: Execsl/usnap
main(){
  unsigned wFeature;
  if(!GetEnvSetting()){
    if((wFeature=sbc_check_card())!=0){
      if(sbc_test_int()){
	if(sbc_test_dma()>=0){
	  printf("%s card installed at :\n", CardType[wCardID-1]);
	  printf("\tI/O address: %x hex\n", ct_io_addx);
	  printf("\tInterrupt: %d\n", ct_intnum);
	  printf("\tDMA Channel: %d\n\n", ct_dma_channel);
	  if(wFeature&2)
	    printf("FM music available.\n");
	  if(wFeature&4)
	    printf("Creative voice available.\n");
	}
	else
	  printf("Error on DMA channel.\n");
      }
      else
	printf("Error on interrupt.\n");
    }
    else
      printf("Sound Blaster Card not found or wrong I/O setting.\n");
  }
  else
    printf("BLASTER environment variable not set r incomplete or invalid.\n");
}
示例#2
0
int SoundCard(ConfigStruct *cs)
  {
  unsigned int status=FALSE;                    //check to see is SoundBlaster
                                                //fm voice is working 

  ct_io_addx=cs->SndPort;
  if ( (sbc_check_card() & 2) )
    {
    status=CARDEXIST;
    InitCard();
    printf("Sound Blaster Found!\n");
    }
  return(status);
  }