comparison libao2/ao_dsound.c @ 14135:234295985ccd

disable all unknown formats in the windows aos
author faust3
date Wed, 08 Dec 2004 09:52:55 +0000
parents a92101a7eb49
children 815f03b7cee5
comparison
equal deleted inserted replaced
14134:8c839bb8a076 14135:234295985ccd
362 // ok, now create the buffers 362 // ok, now create the buffers
363 WAVEFORMATEXTENSIBLE wformat; 363 WAVEFORMATEXTENSIBLE wformat;
364 DSBUFFERDESC dsbpridesc; 364 DSBUFFERDESC dsbpridesc;
365 DSBUFFERDESC dsbdesc; 365 DSBUFFERDESC dsbdesc;
366 366
367 //check if the format is supported in general
368 switch(format){
369 case AFMT_AC3:
370 case AFMT_S24_LE:
371 case AFMT_S16_LE:
372 case AFMT_S8:
373 break;
374 default:
375 mp_msg(MSGT_AO, MSGL_V,"ao_dsound: format %s not supported defaulting to Signed 16-bit Little-Endian\n",audio_out_format_name(format));
376 format=AFMT_S16_LE;
377 }
367 //fill global ao_data 378 //fill global ao_data
368 ao_data.channels = channels; 379 ao_data.channels = channels;
369 ao_data.samplerate = rate; 380 ao_data.samplerate = rate;
370 ao_data.format = format; 381 ao_data.format = format;
371 ao_data.bps = channels * rate * (audio_out_format_bits(format)>>3); 382 ao_data.bps = channels * rate * (audio_out_format_bits(format)>>3);