summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (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
@@ -468,72 +468,55 @@ void VMemo::record(void)
result = read(dsp, sound, 512); // 8192
int j=0;
// if(systemZaurus) {
for (int i = 0; i < result; i++) { //since Z is mono do normally
monoBuffer[i] = sound[i];
}
length+=write(wav, monoBuffer, result);
if(length<0)
recording=false;
- // } else { //ipaq /stereo inputs
-
-
// for (int i = 0; i < result; i+=2) {
// monoBuffer[j] = sound[i];
// // monoBuffer[j] = (sound[i]+sound[i+1])/2;
// j++;
// }
-
- // length+=write(wav, monoBuffer, result);
- // if(length<0)
- // recording=false;
- // // length+=write(wav, monoBuffer, result/2);
- // }
qApp->processEvents();
// printf("%d\r",length);
// fflush(stdout);
}
} else { //AFMT_U8
// 8bit unsigned
unsigned short sound[512], monoBuffer[512];
while(recording) {
result = read(dsp, sound, 512); // 8192
int j=0;
// if(systemZaurus) {
for (int i = 0; i < result; i++) { //since Z is mono do normally
monoBuffer[i] = sound[i];
}
length+=write(wav, monoBuffer, result);
- // } else { //ipaq /stereo inputs
-
// for (int i = 0; i < result; i+=2) {
// monoBuffer[j] = (sound[i]+sound[i+1])/2;
// j++;
// }
-
// length+=write(wav, monoBuffer, result/2);
-
- // if(length<0)
- // recording=false;
-
- // }
length += result;
// printf("%d\r",length);
// fflush(stdout);
}
qApp->processEvents();
}
} else { // 16 bit only capabilities
msg.sprintf("Recording format other");