timidity/timidity.c
changeset 811 d817ca30412d
parent 810 939986574bd8
child 828 561ae6f09324
     1.1 --- a/timidity/timidity.c	Sat Oct 21 02:57:45 2017 -0700
     1.2 +++ b/timidity/timidity.c	Sat Oct 21 03:15:57 2017 -0700
     1.3 @@ -490,6 +490,8 @@
     1.4    song->encoding = 0;
     1.5    if ((audio->format & 0xFF) == 16)
     1.6        song->encoding |= PE_16BIT;
     1.7 +  else if ((audio->format & 0xFF) == 32)
     1.8 +      song->encoding |= PE_32BIT;
     1.9    if (audio->format & 0x8000)
    1.10        song->encoding |= PE_SIGNED;
    1.11    if (audio->channels == 1)
    1.12 @@ -517,6 +519,15 @@
    1.13    case AUDIO_U16MSB:
    1.14  	  song->write = s32tou16b;
    1.15  	  break;
    1.16 +  case AUDIO_S32LSB:
    1.17 +	  song->write = s32tos32l;
    1.18 +	  break;
    1.19 +  case AUDIO_S32MSB:
    1.20 +	  song->write = s32tos32b;
    1.21 +	  break;
    1.22 +  case AUDIO_F32SYS:
    1.23 +	  song->write = s32tof32;
    1.24 +	  break;
    1.25    default:
    1.26  	  SDL_SetError("Unsupported audio format");
    1.27        return NULL;