fixed by preloading samples. the audio callback is being called from the
[dos_auplay] / src / auwav.c
index eca5a76..6e1afc1 100644 (file)
@@ -66,6 +66,7 @@ int au_open_wav(struct au_file *au)
        au->rate = fmt.rate;\r
        au->bits = fmt.sample_bytes * 8;\r
        au->chan = fmt.nchan;\r
+       au->size = pb->size;\r
        au->data = pb;\r
 \r
        au->close = close_wav;\r