aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_mix.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-04 03:12:12 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-04 03:12:12 +0000
commit98c8cf0f19d89b729825d6d37b924a84025ec07b (patch)
tree51cbf43364a63f83c5e0e2fea133038ebf8a255c /code/client/snd_mix.c
parent9e019da1eadfaab84999cf76ec169d6cb3bc9f25 (diff)
downloadioquake3-aero-98c8cf0f19d89b729825d6d37b924a84025ec07b.tar.gz
ioquake3-aero-98c8cf0f19d89b729825d6d37b924a84025ec07b.zip
* AVI video output
- Uses motion jpeg codec by default - Use cl_avidemo to set a framerate - \video [filename] to start capture - \stopvideo to stop capture - Audio capture is a bit ropey git-svn-id: svn://svn.icculus.org/quake3/trunk@454 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/snd_mix.c')
-rw-r--r--code/client/snd_mix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/client/snd_mix.c b/code/client/snd_mix.c
index c1ad06b..47d5ba5 100644
--- a/code/client/snd_mix.c
+++ b/code/client/snd_mix.c
@@ -21,6 +21,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>
@@ -137,6 +138,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 );
}
}