From e7e6202e0f40a3467cb402edba591131782538f0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 5 Jul 2007 02:53:40 +0000 Subject: [PATCH] Added notes about audio callback behaviour. --- docs.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs.html b/docs.html index 5deb10373..25cb6fd9f 100644 --- a/docs.html +++ b/docs.html @@ -52,6 +52,10 @@

General Notes

Unofficial support for the Nintendo DS platform has been added.

+

+ Audio callbacks must now initialize the entire stream: applications must write silence to the stream if they can't supply data, and not mix against the buffer, as it may be random data. + Users may set SDL_AUDIO_MUST_INIT_BUFFERS to retain the old behaviour, but apps should not depend on this environment variable: just add a memset() at the start of your audio callback instead if you need it. +

Unix Notes