wavestream.c
branchSDL-1.2
changeset 876 fab846266822
parent 561 87bdb4c81c0b
equal deleted inserted replaced
875:f067e333302e 876:fab846266822
   322 	} while ( (chunk.magic == FACT) || (chunk.magic == LIST) );
   322 	} while ( (chunk.magic == FACT) || (chunk.magic == LIST) );
   323 
   323 
   324 	/* Decode the audio data format */
   324 	/* Decode the audio data format */
   325 	format = (WaveFMT *)chunk.data;
   325 	format = (WaveFMT *)chunk.data;
   326 	if ( chunk.magic != FMT ) {
   326 	if ( chunk.magic != FMT ) {
   327 		SDL_free(chunk.data);
       
   328 		Mix_SetError("Complex WAVE files not supported");
   327 		Mix_SetError("Complex WAVE files not supported");
   329 		was_error = 1;
   328 		was_error = 1;
   330 		goto done;
   329 		goto done;
   331 	}
   330 	}
   332 	switch (SDL_SwapLE16(format->encoding)) {
   331 	switch (SDL_SwapLE16(format->encoding)) {