if(dpm.encoding & PE_ULAW) { if(write_u32((uint32)AUDIO_FILE_ENCODING_MULAW_8) == -1) return -1; } else if(dpm.encoding & PE_ALAW) { if(write_u32((uint32)AUDIO_FILE_ENCODING_ALAW_8) == -1) return -1; } else if(dpm.encoding & PE_16BIT) { if(write_u32((uint32)AUDIO_FILE_ENCODING_LINEAR_16) == -1) return -1; } else { if(write_u32((uint32)AUDIO_FILE_ENCODING_LINEAR_8) == -1) return -1; } 
if(dpm.encoding & PE_ULAW) t = AUDIO_FILE_ENCODING_MULAW_8; else if(dpm.encoding & PE_ALAW) t = AUDIO_FILE_ENCODING_ALAW_8; else if(dpm.encoding & PE_24BIT) t = AUDIO_FILE_ENCODING_LINEAR_24; else if(dpm.encoding & PE_16BIT) t = AUDIO_FILE_ENCODING_LINEAR_16; else t = AUDIO_FILE_ENCODING_LINEAR_8; if(write_u32((uint32)t) == -1) return -1; 
static int au_output_open(const char *fname, const char *comment){  if(strcmp(fname, "-") == 0) {    dpm.fd = 1; /* data to stdout */    if(comment == NULL)      comment = "(stdout)";  } else {    /* Open the audio file */    dpm.fd = open(fname, FILE_OUTPUT_MODE);    if(dpm.fd < 0) {      ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "%s: %s",		fname, strerror(errno));      return -1;    }    if(comment == NULL)      comment = fname;  }  /* magic */  if(write_str(".snd") == -1) return -1;  /* header size */  if(write_u32((uint32)(24 + strlen(comment))) == -1) return -1;  /* sample data size */  if(write_u32((uint32)0xffffffff) == -1) return -1;  /* audio file encoding */  if(dpm.encoding & PE_ULAW) {      if(write_u32((uint32)AUDIO_FILE_ENCODING_MULAW_8) == -1) return -1;  } else if(dpm.encoding & PE_ALAW) {    if(write_u32((uint32)AUDIO_FILE_ENCODING_ALAW_8) == -1) return -1;  } else if(dpm.encoding & PE_16BIT) {    if(write_u32((uint32)AUDIO_FILE_ENCODING_LINEAR_16) == -1) return -1;  } else {    if(write_u32((uint32)AUDIO_FILE_ENCODING_LINEAR_8) == -1) return -1;  }  /* sample rate */  if(write_u32((uint32)dpm.rate) == -1) return -1;  /* number of channels */  if(dpm.encoding & PE_MONO) {    if(write_u32((uint32)1) == -1) return -1;  } else {    if(write_u32((uint32)2) == -1) return -1;  }  /* comment */  if(write_str(comment) == -1) return -1;  bytes_output = 0;  next_bytes = bytes_output + UPDATE_HEADER_STEP;  already_warning_lseek = 0;  return 0;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/b28ed5f84d8a7baee52cb30f237c2f415cbcf570/au_a.c/clean/timidity/au_a.c