summaryrefslogtreecommitdiff
path: root/src/client/snd_mix.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-01-05 04:00:54 +0000
committerTim Angus <tim@ngus.net>2006-01-05 04:00:54 +0000
commit4e6ae21de9bc373801b68a28b66067480bda4288 (patch)
tree0ffa6b987d2ca06daacc7abffe453a4336b3b6da /src/client/snd_mix.c
parent436df98d2345c4caee3f415e75f009f96ef77697 (diff)
* Merged ioq3-460
- avi exporter - cl_autoRecordDemo - .asm dependencies
Diffstat (limited to 'src/client/snd_mix.c')
-rw-r--r--src/client/snd_mix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/snd_mix.c b/src/client/snd_mix.c
index 85b10cba..4d9e716a 100644
--- a/src/client/snd_mix.c
+++ b/src/client/snd_mix.c
@@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// snd_mix.c -- portable code to mix sounds for snd_dma.c
+#include "client.h"
#include "snd_local.h"
#if idppc_altivec && !defined(MACOS_X)
#include <altivec.h>
@@ -138,6 +139,9 @@ void S_TransferStereo16 (unsigned long *pbuf, int endtime)
snd_p += snd_linear_count;
ls_paintedtime += (snd_linear_count>>1);
+
+ if( CL_VideoRecording( ) )
+ CL_WriteAVIAudioFrame( (byte *)snd_out, snd_linear_count << 1 );
}
}