summaryrefslogtreecommitdiff
path: root/src/sound/sdl_s.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
committerrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
commit5a620d1c6592057b500f0889eef8949dc1e95e4b (patch)
treedabae6247490fdea860bea292bb8eee49ce46fe4 /src/sound/sdl_s.cpp
parent1a515e6344028854c855671c19f49d8f869eb18f (diff)
downloadopenttd-5a620d1c6592057b500f0889eef8949dc1e95e4b.tar.xz
(svn r22406) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/sound/sdl_s.cpp')
-rw-r--r--src/sound/sdl_s.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sound/sdl_s.cpp b/src/sound/sdl_s.cpp
index 57ef9ab9d..7e1c3e993 100644
--- a/src/sound/sdl_s.cpp
+++ b/src/sound/sdl_s.cpp
@@ -18,8 +18,15 @@
#include "sdl_s.h"
#include <SDL.h>
+/** Factory for the SDL sound driver. */
static FSoundDriver_SDL iFSoundDriver_SDL;
+/**
+ * Callback that fills the sound buffer.
+ * @param userdata Ignored.
+ * @param stream The stream to put data into.
+ * @param len The length of the stream in bytes.
+ */
static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
{
MxMixSamples(stream, len / 4);