summaryrefslogtreecommitdiff
path: root/core/applets/vmemo/vmemo.cpp
authorllornkcor <llornkcor>2002-06-23 14:43:54 (UTC)
committer llornkcor <llornkcor>2002-06-23 14:43:54 (UTC)
commit6382b7352205a71557bd87b4f43d7f19f7f3330e (patch) (unidiff)
tree16097c620467a774336a717dba4b4f316e6208c4 /core/applets/vmemo/vmemo.cpp
parent8672a04720e7421e7f41bbf49364bcc1df910bb2 (diff)
downloadopie-6382b7352205a71557bd87b4f43d7f19f7f3330e.zip
opie-6382b7352205a71557bd87b4f43d7f19f7f3330e.tar.gz
opie-6382b7352205a71557bd87b4f43d7f19f7f3330e.tar.bz2
took out unreachable code
Diffstat (limited to 'core/applets/vmemo/vmemo.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 4278f46..cfa07b4 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -474,27 +474,18 @@ void VMemo::record(void)
474 } 474 }
475 475
476 length+=write(wav, monoBuffer, result); 476 length+=write(wav, monoBuffer, result);
477 if(length<0) 477 if(length<0)
478 recording=false; 478 recording=false;
479 479
480 // } else { //ipaq /stereo inputs
481
482
483 // for (int i = 0; i < result; i+=2) { 480 // for (int i = 0; i < result; i+=2) {
484 // monoBuffer[j] = sound[i]; 481 // monoBuffer[j] = sound[i];
485 // // monoBuffer[j] = (sound[i]+sound[i+1])/2; 482 // // monoBuffer[j] = (sound[i]+sound[i+1])/2;
486 483
487 // j++; 484 // j++;
488 // } 485 // }
489
490 // length+=write(wav, monoBuffer, result);
491 // if(length<0)
492 // recording=false;
493 // // length+=write(wav, monoBuffer, result/2);
494 // }
495 qApp->processEvents(); 486 qApp->processEvents();
496 // printf("%d\r",length); 487 // printf("%d\r",length);
497 // fflush(stdout); 488 // fflush(stdout);
498 } 489 }
499 490
500 } else { //AFMT_U8 491 } else { //AFMT_U8
@@ -509,25 +500,17 @@ void VMemo::record(void)
509 for (int i = 0; i < result; i++) { //since Z is mono do normally 500 for (int i = 0; i < result; i++) { //since Z is mono do normally
510 monoBuffer[i] = sound[i]; 501 monoBuffer[i] = sound[i];
511 } 502 }
512 503
513 length+=write(wav, monoBuffer, result); 504 length+=write(wav, monoBuffer, result);
514 505
515 // } else { //ipaq /stereo inputs
516
517 // for (int i = 0; i < result; i+=2) { 506 // for (int i = 0; i < result; i+=2) {
518 // monoBuffer[j] = (sound[i]+sound[i+1])/2; 507 // monoBuffer[j] = (sound[i]+sound[i+1])/2;
519 // j++; 508 // j++;
520 // } 509 // }
521
522 // length+=write(wav, monoBuffer, result/2); 510 // length+=write(wav, monoBuffer, result/2);
523
524 // if(length<0)
525 // recording=false;
526
527 // }
528 length += result; 511 length += result;
529 // printf("%d\r",length); 512 // printf("%d\r",length);
530 // fflush(stdout); 513 // fflush(stdout);
531 } 514 }
532 515
533 qApp->processEvents(); 516 qApp->processEvents();