Defined base sample rate.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@907 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
d0cc002084
commit
1c57e16f7d
|
@ -40,6 +40,9 @@
|
|||
#define ZM_SCALE_SCALE 100 // The factor by which we bump up 'scale' to simulate FP
|
||||
#define ZM_RATE_SCALE 100 // The factor by which we bump up 'rate' to simulate FP
|
||||
|
||||
#define ZM_MAX_FPS 30 // The maximum frame rate we expect to handle
|
||||
#define ZM_SAMPLE_RATE int(1000000/ZM_MAX_FPS) // A general nyquist sample frequency for delays etc
|
||||
|
||||
class ConfigItem
|
||||
{
|
||||
private:
|
||||
|
|
|
@ -160,7 +160,7 @@ int main( int argc, char *argv[] )
|
|||
sigprocmask( SIG_BLOCK, &block_set, 0 );
|
||||
if ( !monitor->Analyse() )
|
||||
{
|
||||
usleep( 16666 ); // Nyquist sampling rate at 30fps, wouldn't expect any more than this
|
||||
usleep( ZM_SAMPLE_RATE ); // Nyquist sampling rate at 30fps, wouldn't expect any more than this
|
||||
}
|
||||
sigprocmask( SIG_UNBLOCK, &block_set, 0 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue