# HG changeset patch # User arpi # Date 1028486006 0 # Node ID 4a45ce284efc0e2d1191d1902518fca38e5d4593 # Parent 138a7ff52a26fe293fb18f57b8d0fea6db9bf53c format incompatibility warning diff -r 138a7ff52a26 -r 4a45ce284efc libao2/ao_oss.c --- a/libao2/ao_oss.c Sun Aug 04 17:24:00 2002 +0000 +++ b/libao2/ao_oss.c Sun Aug 04 18:33:26 2002 +0000 @@ -147,6 +147,9 @@ } mp_msg(MSGT_AO,MSGL_V,"audio_setup: sample format: %s (requested: %s)\n", audio_out_format_name(ao_data.format), audio_out_format_name(format)); + if(ao_data.format!=format) + mp_msg(MSGT_AO,MSGL_WARN,"WARNING! Your soundcard does NOT support %s sample format! Broken audio or bad playback speed are possible! Try with '-aop list=format'\n",audio_out_format_name(format)); + if(format != AFMT_AC3) { // We only use SNDCTL_DSP_CHANNELS for >2 channels, in case some drivers don't have it