# HG changeset patch # User reimar # Date 1234809534 0 # Node ID 0405513156d131262b06c40a4915eb7ee9c25607 # Parent 8c9ed8e6fc99963a1724e194c9376c1eb6129a86 100l, do 0-filling on resume (to avoid desync after pause) in ao_oss only when the we output a PCM format, not for e.g. AC3. diff -r 8c9ed8e6fc99 -r 0405513156d1 libao2/ao_oss.c --- a/libao2/ao_oss.c Mon Feb 16 17:05:58 2009 +0000 +++ b/libao2/ao_oss.c Mon Feb 16 18:38:54 2009 +0000 @@ -479,7 +479,7 @@ int fillcnt; reset(); fillcnt = get_space() - prepause_space; - if (fillcnt > 0) { + if (fillcnt > 0 && !(ao_data.format & AF_FORMAT_SPECIAL_MASK)) { void *silence = calloc(fillcnt, 1); play(silence, fillcnt, 0); free(silence);