summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore 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
@@ -477,21 +477,12 @@ void VMemo::record(void)
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);
@@ -512,19 +503,11 @@ void VMemo::record(void)
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);