summaryrefslogtreecommitdiff
path: root/src/sound
diff options
context:
space:
mode:
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);