Revision 6e7ee06a

View differences:

chunker_player/chunker_player.c
1220 1220
	wanted_spec.samples = SDL_AUDIO_BUFFER_SIZE;
1221 1221
	wanted_spec.callback = audio_callback;
1222 1222
	wanted_spec.userdata = aCodecCtx;
1223
	if(SDL_OpenAudio(&wanted_spec,&spec)<0) {
1224
		fprintf(stderr,"SDL_OpenAudio: %s\n",SDL_GetError());
1225
		return -1;
1226
	}
1223
	if(!silentMode)
1224
		if(SDL_OpenAudio(&wanted_spec,&spec)<0) {
1225
			fprintf(stderr,"SDL_OpenAudio: %s\n",SDL_GetError());
1226
			return -1;
1227
		}
1227 1228
	dimAudioQ = spec.size;
1228 1229
	deltaAudioQ = (float)((float)spec.samples)*1000/spec.freq;
1229 1230

  

Also available in: Unified diff