From 1e1fcd158ae0b63a215b0d79ea147e0d91a40a79 Mon Sep 17 00:00:00 2001 From: iovar Date: Tue, 20 Feb 2007 12:30:31 +0000 Subject: added configurable ringbuffer size, corrected a mistake that blocked compilation(from last commit at shminfo initialization), removed the options from USAGE in the manpage and the program ,since it's too bloated to be usefull git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@285 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/include/rmdmacro.h | 4 +--- recordmydesktop/include/rmdtypes.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'recordmydesktop/include') diff --git a/recordmydesktop/include/rmdmacro.h b/recordmydesktop/include/rmdmacro.h index 982f986..ebeb8bf 100644 --- a/recordmydesktop/include/rmdmacro.h +++ b/recordmydesktop/include/rmdmacro.h @@ -105,9 +105,6 @@ #define DEFAULT_AUDIO_DEVICE "/dev/dsp" #endif -#ifdef HAVE_JACK_H - #define BUFFERS_IN_RING 0x0020 -#endif #define CLIP_EVENT_AREA(e,brwin,wgeom){\ @@ -212,6 +209,7 @@ (args)->use_jack=\ (args)->jack_nports=\ (args)->nocondshared=0;\ + (args)->jack_ringbuffer_secs=3.0;\ (args)->jack_port_names=NULL;\ (args)->no_quick_subsample=\ (args)->noshared=1;\ diff --git a/recordmydesktop/include/rmdtypes.h b/recordmydesktop/include/rmdtypes.h index 005ae5a..f8d9f4a 100644 --- a/recordmydesktop/include/rmdtypes.h +++ b/recordmydesktop/include/rmdtypes.h @@ -177,6 +177,7 @@ typedef struct _ProgArgs{ int use_jack; //record audio with jack unsigned int jack_nports; char **jack_port_names; + float jack_ringbuffer_secs; }ProgArgs; //this struct holds anything related to encoding AND @@ -247,6 +248,7 @@ typedef struct _JackData{ unsigned int buffersize, //buffer size for every port in frames. frequency, //samplerate with which jack server was started. nports; //number of ports. + float ringbuffer_secs; char **port_names; //names of ports(as specified in args). jack_port_t **ports; //connections to thes ports. jack_default_audio_sample_t **portbuf; //retrieval of audio buffers. -- cgit v1.2.1