comparison src/audio/alsa/SDL_alsa_audio.c @ 1995:0ca6ba107642

ALSA backend can handle int32 and float32 data directly.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 31 Aug 2006 21:28:21 +0000
parents 3b4ce57c6215
children f2058fb367e4
comparison
equal deleted inserted replaced
1994:6abc7e6f9817 1995:0ca6ba107642
540 format = SND_PCM_FORMAT_U16_LE; 540 format = SND_PCM_FORMAT_U16_LE;
541 break; 541 break;
542 case AUDIO_U16MSB: 542 case AUDIO_U16MSB:
543 format = SND_PCM_FORMAT_U16_BE; 543 format = SND_PCM_FORMAT_U16_BE;
544 break; 544 break;
545 case AUDIO_S32LSB:
546 format = SND_PCM_FORMAT_U32_LE;
547 break;
548 case AUDIO_S32MSB:
549 format = SND_PCM_FORMAT_U32_BE;
550 break;
551 case AUDIO_F32LSB:
552 format = SND_PCM_FORMAT_FLOAT_LE;
553 break;
554 case AUDIO_F32MSB:
555 format = SND_PCM_FORMAT_FLOAT_BE;
556 break;
545 default: 557 default:
546 format = 0; 558 format = 0;
547 break; 559 break;
548 } 560 }
549 if (format != 0) { 561 if (format != 0) {