diff options
Diffstat (limited to 'code/client/snd_mix.c')
-rw-r--r-- | code/client/snd_mix.c | 4 |
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 ); } } |