author | llornkcor <llornkcor> | 2002-05-18 01:36:32 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-18 01:36:32 (UTC) |
commit | 441e976481ced45c4884f336b18c06111e1f2ebc (patch) (unidiff) | |
tree | 6c5c31d578b29dd09ba9177c7e0cdf80fbcb7bb7 /core/applets | |
parent | 893358440deca10dfca9e19f38598dec2eb73c98 (diff) | |
download | opie-441e976481ced45c4884f336b18c06111e1f2ebc.zip opie-441e976481ced45c4884f336b18c06111e1f2ebc.tar.gz opie-441e976481ced45c4884f336b18c06111e1f2ebc.tar.bz2 |
added jeremy's copyright, and maybe fixed or broke things for ipaq
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 118fcde..e14d532 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -11,2 +11,3 @@ | |||
11 | ************************************************************************************/ | 11 | ************************************************************************************/ |
12 | // copyright 2002 Jeremy Cowgar <jc@cowgar.com> | ||
12 | /* | 13 | /* |
@@ -256,6 +257,6 @@ void VMemo::mousePressEvent( QMouseEvent *me ) | |||
256 | */ | 257 | */ |
257 | #if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) | 258 | // #if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) |
258 | if (!systemZaurus ) | 259 | // if (!systemZaurus ) |
259 | return; | 260 | // return; |
260 | #endif | 261 | // #endif |
261 | 262 | ||
@@ -438,3 +439,2 @@ void VMemo::record(void) | |||
438 | result = read(dsp, sound, 512); // 8192 | 439 | result = read(dsp, sound, 512); // 8192 |
439 | qApp->processEvents(); | ||
440 | int j=0; | 440 | int j=0; |
@@ -444,3 +444,2 @@ void VMemo::record(void) | |||
444 | } | 444 | } |
445 | qApp->processEvents(); | ||
446 | length+=write(wav, monoBuffer, result); | 445 | length+=write(wav, monoBuffer, result); |
@@ -451,7 +450,6 @@ void VMemo::record(void) | |||
451 | } | 450 | } |
452 | qApp->processEvents(); | ||
453 | length+=write(wav, monoBuffer, result/2); | 451 | length+=write(wav, monoBuffer, result/2); |
454 | } | 452 | } |
455 | printf("%d\r",length); | 453 | // printf("%d\r",length); |
456 | fflush(stdout); | 454 | // fflush(stdout); |
457 | } | 455 | } |
@@ -462,3 +460,2 @@ void VMemo::record(void) | |||
462 | result = read(dsp, sound, 512); // 8192 | 460 | result = read(dsp, sound, 512); // 8192 |
463 | qApp->processEvents(); | ||
464 | int j=0; | 461 | int j=0; |
@@ -468,3 +465,2 @@ void VMemo::record(void) | |||
468 | } | 465 | } |
469 | qApp->processEvents(); | ||
470 | length+=write(wav, monoBuffer, result); | 466 | length+=write(wav, monoBuffer, result); |
@@ -475,3 +471,2 @@ void VMemo::record(void) | |||
475 | } | 471 | } |
476 | qApp->processEvents(); | ||
477 | length+=write(wav, monoBuffer, result/2); | 472 | length+=write(wav, monoBuffer, result/2); |
@@ -479,6 +474,4 @@ void VMemo::record(void) | |||
479 | length += result; | 474 | length += result; |
480 | printf("%d\r",length); | 475 | // printf("%d\r",length); |
481 | fflush(stdout); | 476 | // fflush(stdout); |
482 | |||
483 | qApp->processEvents(); | ||
484 | } | 477 | } |
@@ -494,4 +487,2 @@ void VMemo::record(void) | |||
494 | result = read(dsp, sound, 512); // 8192 | 487 | result = read(dsp, sound, 512); // 8192 |
495 | qApp->processEvents(); | ||
496 | |||
497 | write(wav, sound, result); | 488 | write(wav, sound, result); |
@@ -501,4 +492,4 @@ void VMemo::record(void) | |||
501 | } | 492 | } |
502 | printf("%d\r",length); | 493 | // printf("%d\r",length); |
503 | fflush(stdout); | 494 | // fflush(stdout); |
504 | // qDebug("file has length of %d lasting %d seconds", | 495 | // qDebug("file has length of %d lasting %d seconds", |