summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp31
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
@@ -10,4 +10,5 @@
**
************************************************************************************/
+// copyright 2002 Jeremy Cowgar <jc@cowgar.com>
/*
* $Id$
@@ -255,8 +256,8 @@ void VMemo::mousePressEvent( QMouseEvent *me )
mousePressEvent and mouseReleaseEvent with a NULL parameter.
*/
-#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX)
- if (!systemZaurus )
- return;
-#endif
+// #if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX)
+// if (!systemZaurus )
+// return;
+// #endif
Config config( "Sound" );
@@ -437,5 +438,4 @@ void VMemo::record(void)
while(recording) {
result = read(dsp, sound, 512); // 8192
- qApp->processEvents();
int j=0;
if(systemZaurus) {
@@ -443,5 +443,4 @@ void VMemo::record(void)
monoBuffer[i] = sound[i];
}
- qApp->processEvents();
length+=write(wav, monoBuffer, result);
} else { //ipaq /stereo inputs
@@ -450,9 +449,8 @@ void VMemo::record(void)
j++;
}
- qApp->processEvents();
length+=write(wav, monoBuffer, result/2);
}
- printf("%d\r",length);
- fflush(stdout);
+// printf("%d\r",length);
+// fflush(stdout);
}
} else { //AFMT_U8
@@ -461,5 +459,4 @@ void VMemo::record(void)
while(recording) {
result = read(dsp, sound, 512); // 8192
- qApp->processEvents();
int j=0;
if(systemZaurus) {
@@ -467,5 +464,4 @@ void VMemo::record(void)
monoBuffer[i] = sound[i];
}
- qApp->processEvents();
length+=write(wav, monoBuffer, result);
} else { //ipaq /stereo inputs
@@ -474,12 +470,9 @@ void VMemo::record(void)
j++;
}
- qApp->processEvents();
length+=write(wav, monoBuffer, result/2);
}
length += result;
- printf("%d\r",length);
- fflush(stdout);
-
- qApp->processEvents();
+// printf("%d\r",length);
+// fflush(stdout);
}
@@ -493,6 +486,4 @@ void VMemo::record(void)
while(recording) {
result = read(dsp, sound, 512); // 8192
- qApp->processEvents();
-
write(wav, sound, result);
length += result;
@@ -500,6 +491,6 @@ void VMemo::record(void)
qApp->processEvents();
}
- printf("%d\r",length);
- fflush(stdout);
+// printf("%d\r",length);
+// fflush(stdout);
// qDebug("file has length of %d lasting %d seconds",
// length, (( length / speed) / channels) / 2 );