aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/client/snd_dma.c')
-rw-r--r--code/client/snd_dma.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/code/client/snd_dma.c b/code/client/snd_dma.c
index 3977703..0505403 100644
--- a/code/client/snd_dma.c
+++ b/code/client/snd_dma.c
@@ -1139,6 +1139,12 @@ void S_GetSoundtime(void)
fullsamples = dma.samples / dma.channels;
+ if( CL_VideoRecording( ) )
+ {
+ s_soundtime += (int)ceil( dma.speed / cl_avidemo->value );
+ return;
+ }
+
// it is possible to miscount buffers if it has wrapped twice between
// calls to S_Update. Oh well.
samplepos = SNDDMA_GetDMAPos();