libspark/record.cpp: user configurable buffer sizes

Origin commit data
------------------
Branch: master
Commit: 450fc1966a
Author: martii <you@example.com>
Date: 2012-07-21 (Sat, 21 Jul 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2012-07-21 16:32:00 +02:00
parent 7299337887
commit 3081c61771
2 changed files with 60 additions and 12 deletions

View File

@@ -21,8 +21,19 @@ class cRecord
pthread_t record_thread;
bool record_thread_running;
record_state_t exit_flag;
#ifdef MARTII
int bufsize;
int bufsize_dmx;
void (*failureCallback)(void *);
void *failureData;
#endif
public:
#ifdef MARTII
cRecord(int num = 0, int bs_dmx = 100 * 188 * 1024, int bs = 100 * 188 * 1024);
void setFailureCallback(void (*f)(void *), void *d) { failureCallback = f; failureData = d; }
#else
cRecord(int num = 0);
#endif
~cRecord();
bool Open();