comparison decoders/timidity/instrum.c @ 447:c98a34c00069

Fixed MIDI decoding on bigendian systems.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 05 Aug 2003 10:07:20 +0000
parents 2d887640d300
children cbc2a4ffeeec
comparison
equal deleted inserted replaced
446:ce8937e44e7a 447:c98a34c00069
418 { 418 {
419 Sint32 i=sp->data_length/2; 419 Sint32 i=sp->data_length/2;
420 Sint16 *tmp=(Sint16 *)sp->data,s; 420 Sint16 *tmp=(Sint16 *)sp->data,s;
421 while (i--) 421 while (i--)
422 { 422 {
423 s=SDL_SwapLE32(*tmp); 423 s=SDL_SwapLE16(*tmp);
424 *tmp++=s; 424 *tmp++=s;
425 } 425 }
426 } 426 }
427 #endif 427 #endif
428 428