summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-06-23 18:53:51 (UTC)
committer llornkcor <llornkcor>2002-06-23 18:53:51 (UTC)
commit616f8cef3111756cac0240be10aea38d4f38ad8e (patch) (unidiff)
tree4d4e5adc2faf9d901b6a3204f3eefa9799eb6c97
parenta27191487361a43e3240a144176688c75e54b868 (diff)
downloadopie-616f8cef3111756cac0240be10aea38d4f38ad8e.zip
opie-616f8cef3111756cac0240be10aea38d4f38ad8e.tar.gz
opie-616f8cef3111756cac0240be10aea38d4f38ad8e.tar.bz2
hide again, one more fix to go..
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 63ee0b8..84d53e0 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -234,6 +234,6 @@ VMemo::VMemo( QWidget *parent, const char *_name )
234 e << QString("toggleRecord()"); 234 e << QString("toggleRecord()");
235 } 235 }
236 // if( vmCfg.readNumEntry("hideIcon",0) == 1 || toggleKey > 0) 236 if( vmCfg.readNumEntry("hideIcon",0) == 1 || toggleKey > 0)
237 // hide(); 237 hide();
238 } 238 }
239} 239}
@@ -364,4 +364,5 @@ void VMemo::stopRecording() {
364 if(useAlerts) 364 if(useAlerts)
365 if( msgLabel) delete msgLabel; 365 if( msgLabel) delete msgLabel;
366 t_timer->stop();
366} 367}
367 368
@@ -457,6 +458,9 @@ void VMemo::record(void)
457 msg.sprintf("Recording format %d", format); 458 msg.sprintf("Recording format %d", format);
458 qDebug(msg); 459 qDebug(msg);
460 Config config("Vmemo");
461 config.setGroup("Record");
462 int sRate=config.readNumEntry("SizeLimit", 30);
459 463
460 t_timer->start( 30 * 1000+1000, TRUE); 464 t_timer->start( sRate * 1000+1000, TRUE);
461 465
462 if(systemZaurus) { 466 if(systemZaurus) {
@@ -473,5 +477,5 @@ void VMemo::record(void)
473 477
474 result = read(dsp, sound, 512); // 8192 478 result = read(dsp, sound, 512); // 8192
475 int j=0; 479 // int j=0;
476 480
477 for (int i = 0; i < result; i++) { //since Z is mono do normally 481 for (int i = 0; i < result; i++) { //since Z is mono do normally
@@ -499,5 +503,5 @@ void VMemo::record(void)
499 while(recording) { 503 while(recording) {
500 result = read(dsp, sound, 512); // 8192 504 result = read(dsp, sound, 512); // 8192
501 int j=0; 505 // int j=0;
502 506
503 // if(systemZaurus) { 507 // if(systemZaurus) {
@@ -528,5 +532,5 @@ void VMemo::record(void)
528 qDebug(msg); 532 qDebug(msg);
529 533
530 signed short sound[512], monoBuffer[512]; 534 signed short sound[512];//, monoBuffer[512];
531 535
532 while(recording) { 536 while(recording) {