diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-02-20 12:30:31 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-02-20 12:30:31 +0000 |
commit | 1e1fcd158ae0b63a215b0d79ea147e0d91a40a79 (patch) | |
tree | cfa8e7b41a73cfacf8ef00c0cbd44f4e19959b8c /recordmydesktop/include | |
parent | 225a939a00490c2e6f45cd068abd514c96dde50e (diff) |
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
Diffstat (limited to 'recordmydesktop/include')
-rw-r--r-- | recordmydesktop/include/rmdmacro.h | 4 | ||||
-rw-r--r-- | recordmydesktop/include/rmdtypes.h | 2 |
2 files changed, 3 insertions, 3 deletions
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. |