diff options
Diffstat (limited to 'src/client/snd_dma.c')
-rw-r--r-- | src/client/snd_dma.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/snd_dma.c b/src/client/snd_dma.c index 6860179f..d51a4b85 100644 --- a/src/client/snd_dma.c +++ b/src/client/snd_dma.c @@ -1140,6 +1140,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(); |