r468 - trunk/code/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jan 6 17:28:07 EST 2006
Author: tma
Date: 2006-01-06 17:28:07 -0500 (Fri, 06 Jan 2006)
New Revision: 468
Modified:
trunk/code/client/cl_avi.c
trunk/code/client/cl_main.c
trunk/code/client/client.h
trunk/code/client/snd_dma.c
Log:
* Oops. Rename cl_avidemo to cl_aviFrameRate
Modified: trunk/code/client/cl_avi.c
===================================================================
--- trunk/code/client/cl_avi.c 2006-01-06 21:56:50 UTC (rev 467)
+++ trunk/code/client/cl_avi.c 2006-01-06 22:28:07 UTC (rev 468)
@@ -332,9 +332,9 @@
Com_Memset( &afd, 0, sizeof( aviFileData_t ) );
// Don't start if a framerate has not been chosen
- if( cl_avidemo->integer <= 0 )
+ if( cl_aviFrameRate->integer <= 0 )
{
- Com_Printf( S_COLOR_RED "cl_avidemo must be >= 1\n" );
+ Com_Printf( S_COLOR_RED "cl_aviFrameRate must be >= 1\n" );
return qfalse;
}
@@ -349,7 +349,7 @@
Q_strncpyz( afd.fileName, fileName, MAX_QPATH );
- afd.frameRate = cl_avidemo->integer;
+ afd.frameRate = cl_aviFrameRate->integer;
afd.framePeriod = (int)( 1000000.0f / afd.frameRate );
afd.width = cls.glconfig.vidWidth;
afd.height = cls.glconfig.vidHeight;
@@ -375,7 +375,7 @@
while( ( afd.a.rate % suggestRate ) && suggestRate >= 1 )
suggestRate--;
- Com_Printf( S_COLOR_YELLOW "WARNING: cl_avidemo is not a divisor "
+ Com_Printf( S_COLOR_YELLOW "WARNING: cl_aviFrameRate is not a divisor "
"of the audio rate, suggest %d\n", suggestRate );
}
@@ -484,7 +484,7 @@
bytesInBuffer += size;
// Only write if we have a frame's worth of audio
- if( bytesInBuffer >= (int)ceil( afd.a.rate / cl_avidemo->value ) *
+ if( bytesInBuffer >= (int)ceil( afd.a.rate / cl_aviFrameRate->value ) *
afd.a.sampleSize )
{
int chunkOffset = afd.fileSize - afd.moviOffset - 8;
Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c 2006-01-06 21:56:50 UTC (rev 467)
+++ trunk/code/client/cl_main.c 2006-01-06 22:28:07 UTC (rev 468)
@@ -44,7 +44,7 @@
cvar_t *cl_showSend;
cvar_t *cl_timedemo;
cvar_t *cl_autoRecordDemo;
-cvar_t *cl_avidemo;
+cvar_t *cl_aviFrameRate;
cvar_t *cl_aviMotionJpeg;
cvar_t *cl_forceavidemo;
@@ -2026,13 +2026,13 @@
}
// if recording an avi, lock to a fixed fps
- if ( CL_VideoRecording( ) && cl_avidemo->integer && msec) {
+ if ( CL_VideoRecording( ) && cl_aviFrameRate->integer && msec) {
// save the current screen
if ( cls.state == CA_ACTIVE || cl_forceavidemo->integer) {
CL_TakeVideoFrame( );
// fixed time for next frame'
- msec = (int)ceil( (1000.0f / cl_avidemo->value) * com_timescale->value );
+ msec = (int)ceil( (1000.0f / cl_aviFrameRate->value) * com_timescale->value );
if (msec == 0) {
msec = 1;
}
@@ -2414,7 +2414,7 @@
cl_timedemo = Cvar_Get ("timedemo", "0", 0);
cl_autoRecordDemo = Cvar_Get ("cl_autoRecordDemo", "0", CVAR_ARCHIVE);
- cl_avidemo = Cvar_Get ("cl_avidemo", "25", CVAR_ARCHIVE);
+ cl_aviFrameRate = Cvar_Get ("cl_aviFrameRate", "25", CVAR_ARCHIVE);
cl_aviMotionJpeg = Cvar_Get ("cl_aviMotionJpeg", "1", CVAR_ARCHIVE);
cl_forceavidemo = Cvar_Get ("cl_forceavidemo", "0", 0);
Modified: trunk/code/client/client.h
===================================================================
--- trunk/code/client/client.h 2006-01-06 21:56:50 UTC (rev 467)
+++ trunk/code/client/client.h 2006-01-06 22:28:07 UTC (rev 468)
@@ -343,7 +343,7 @@
extern cvar_t *m_filter;
extern cvar_t *cl_timedemo;
-extern cvar_t *cl_avidemo;
+extern cvar_t *cl_aviFrameRate;
extern cvar_t *cl_aviMotionJpeg;
extern cvar_t *cl_activeAction;
Modified: trunk/code/client/snd_dma.c
===================================================================
--- trunk/code/client/snd_dma.c 2006-01-06 21:56:50 UTC (rev 467)
+++ trunk/code/client/snd_dma.c 2006-01-06 22:28:07 UTC (rev 468)
@@ -1141,7 +1141,7 @@
if( CL_VideoRecording( ) )
{
- s_soundtime += (int)ceil( dma.speed / cl_avidemo->value );
+ s_soundtime += (int)ceil( dma.speed / cl_aviFrameRate->value );
return;
}
More information about the quake3-commits
mailing list