sprintf(text, "%lu Bps / %lu kbps", wavinfo->byterate,      wavinfo->byterate * 8 / 1000); FILL_ENTRY(label_bitrate);  switch (wavinfo->encoding) { case (WAV_MP2): sprintf(text, "MP2 "); break; case (WAV_MP3): sprintf(text, "MP3 "); break; case (WAV_WMA): sprintf(text, "WMA "); break; case (WAV_LPCM): sprintf(text, "LPCM "); break; case (WAV_PCM): sprintf(text, "PCM "); break; case (WAV_AC3): sprintf(text, "AC3 "); break; case (WAV_OGG): sprintf(text,"OGG/VORBIS"); break; default: sprintf(text, "?? (0x%2x) ", wavinfo->encoding); break; }
sprintf(text, "%lu Bps / %lu kbps", wavinfo->byterate,      wavinfo->byterate * 8 / 1000); FILL_ENTRY(label_bitrate); sprintf(text, "%s ", getStrFromAudioCodec(wavinfo->encoding));
void DIA_properties( void ){ char text[80]; uint16_t hh, mm, ss, ms; GtkWidget *dialog;    if (playing)	return;    text[0] = 0;    if (!avifileinfo)	return;	dialog = create_dialog();	gtk_transient(dialog);#define FILL_ENTRY(x) gtk_label_set_text((GtkLabel *) lookup_widget(dialog,#x),text);	sprintf(text, "%lu x %lu  ", avifileinfo->width,		avifileinfo->height);	FILL_ENTRY(label_size);	sprintf(text, "%2.3f fps", (float) avifileinfo->fps1000 / 1000.F);	FILL_ENTRY(label_fps);			sprintf(text, "%ld frames", avifileinfo->nb_frames);	FILL_ENTRY(label_number);		      	sprintf(text, "%s ",      fourCC::tostring(avifileinfo->fcc));	FILL_ENTRY(label_videofourcc);	if (avifileinfo->nb_frames)	  {	      	frame2time(avifileinfo->nb_frames, avifileinfo->fps1000,			 &hh, &mm, &ss, &ms);	      	sprintf(text, "%02d:%02d:%02d.%03d", hh, mm, ss, ms);	   	FILL_ENTRY(label_duration);		  }	// Now audio	if (wavinfo)	  {	      switch (wavinfo->channels)		{		case 1:		    sprintf(text, "MONO");		    break;		case 2:		    sprintf(text, "STEREO");		    break;		default:		    sprintf(text, "????");		    break;		}	     	FILL_ENTRY(label1_audiomode);	     	      	sprintf(text, "%lu Hz", wavinfo->frequency);	     	FILL_ENTRY(label_fq);	     	      	      sprintf(text, "%lu Bps / %lu kbps", wavinfo->byterate,      wavinfo->byterate * 8 / 1000);	      FILL_ENTRY(label_bitrate);	      	      switch (wavinfo->encoding)		{		case (WAV_MP2):		    sprintf(text, "MP2 ");		    break;		case (WAV_MP3):		    sprintf(text, "MP3 ");		    break;		case (WAV_WMA):		    sprintf(text, "WMA ");		    break;		 case (WAV_LPCM):		    sprintf(text, "LPCM ");		    break;		case (WAV_PCM):		    sprintf(text, "PCM ");		    break;		case (WAV_AC3):		    sprintf(text, "AC3 ");		    break;       		case (WAV_OGG):       		    sprintf(text,"OGG/VORBIS");        	    break;		default:		    sprintf(text, "?? (0x%2x) ", wavinfo->encoding);		    break;		}	     	FILL_ENTRY(label1_audiofourcc);		sprintf(text,"%lu MBytes",video_body->getAudioLength()>>20);		FILL_ENTRY(label_audioduration);	} else	  {	      sprintf(text, "NONE");	      	FILL_ENTRY(label_fq);	     	FILL_ENTRY(label1_audiomode);	        FILL_ENTRY(label_bitrate);	  	FILL_ENTRY(label1_audiofourcc);	  }	gtk_dialog_run(GTK_DIALOG(dialog));		gtk_widget_destroy(dialog);		}  