comparison decoders/wav.c @ 351:069ce624d6cf

FIXME cleanup.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 06 Jun 2002 19:12:13 +0000
parents 565ae12fa74e
children 4bcbc442d145
comparison
equal deleted inserted replaced
350:cafdbcae733d 351:069ce624d6cf
694 BAIL_IF_MACRO(!read_fmt_chunk(rw, fmt), "WAV: Can't read format chunk.", 0); 694 BAIL_IF_MACRO(!read_fmt_chunk(rw, fmt), "WAV: Can't read format chunk.", 0);
695 695
696 sample->actual.channels = (Uint8) fmt->wChannels; 696 sample->actual.channels = (Uint8) fmt->wChannels;
697 sample->actual.rate = fmt->dwSamplesPerSec; 697 sample->actual.rate = fmt->dwSamplesPerSec;
698 if ((fmt->wBitsPerSample == 4) /*|| (fmt->wBitsPerSample == 0) */ ) 698 if ((fmt->wBitsPerSample == 4) /*|| (fmt->wBitsPerSample == 0) */ )
699 sample->actual.format = AUDIO_S16SYS; /* !!! FIXME ? */ 699 sample->actual.format = AUDIO_S16SYS;
700 else if (fmt->wBitsPerSample == 8) 700 else if (fmt->wBitsPerSample == 8)
701 sample->actual.format = AUDIO_U8; 701 sample->actual.format = AUDIO_U8;
702 else if (fmt->wBitsPerSample == 16) 702 else if (fmt->wBitsPerSample == 16)
703 sample->actual.format = AUDIO_S16LSB; 703 sample->actual.format = AUDIO_S16LSB;
704 else 704 else