summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index e25a1ab..10a947e 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -468,25 +468,25 @@ void VMemo::record(void)
468 for (int i = 0; i < result; i++) { //since Z is mono do normally 468 for (int i = 0; i < result; i++) { //since Z is mono do normally
469 monoBuffer[i] = sound[i]; 469 monoBuffer[i] = sound[i];
470 } 470 }
471 471
472 length+=write(wav, monoBuffer, result); 472 length+=write(wav, monoBuffer, result);
473 if(length<0) 473 if(length<0)
474 recording=false; 474 recording=false;
475 475
476 } else { //ipaq /stereo inputs 476 } else { //ipaq /stereo inputs
477 477
478 478
479 for (int i = 0; i < result; i+=2) { 479 for (int i = 0; i < result; i+=2) {
480/ monoBuffer[j] = sound[i]; 480 monoBuffer[j] = sound[i];
481 // monoBuffer[j] = (sound[i]+sound[i+1])/2; 481 // monoBuffer[j] = (sound[i]+sound[i+1])/2;
482 482
483 j++; 483 j++;
484 } 484 }
485 485
486 length+=write(wav, monoBuffer, result); 486 length+=write(wav, monoBuffer, result);
487 if(length<0) 487 if(length<0)
488 recording=false; 488 recording=false;
489 // length+=write(wav, monoBuffer, result/2); 489 // length+=write(wav, monoBuffer, result/2);
490 } 490 }
491 qApp->processEvents(); 491 qApp->processEvents();
492// printf("%d\r",length); 492// printf("%d\r",length);