summaryrefslogtreecommitdiff
path: root/src/sound
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
parent1a515e6344028854c855671c19f49d8f869eb18f (diff)
downloadopenttd-5a620d1c6592057b500f0889eef8949dc1e95e4b.tar.xz
(svn r22406) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/null_s.cpp1
-rw-r--r--src/sound/sdl_s.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/sound/null_s.cpp b/src/sound/null_s.cpp
index 858724ec3..953bf5764 100644
--- a/src/sound/null_s.cpp
+++ b/src/sound/null_s.cpp
@@ -12,4 +12,5 @@
#include "../stdafx.h"
#include "null_s.h"
+/** The factory for the null sound driver. */
static FSoundDriver_Null iFSoundDriver_Null;
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);