-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 31 |
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 @@ -11,2 +11,3 @@ ************************************************************************************/ +// copyright 2002 Jeremy Cowgar <jc@cowgar.com> /* @@ -256,6 +257,6 @@ void VMemo::mousePressEvent( QMouseEvent *me ) */ -#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 @@ -438,3 +439,2 @@ void VMemo::record(void) result = read(dsp, sound, 512); // 8192 - qApp->processEvents(); int j=0; @@ -444,3 +444,2 @@ void VMemo::record(void) } - qApp->processEvents(); length+=write(wav, monoBuffer, result); @@ -451,7 +450,6 @@ void VMemo::record(void) } - qApp->processEvents(); length+=write(wav, monoBuffer, result/2); } - printf("%d\r",length); - fflush(stdout); +// printf("%d\r",length); +// fflush(stdout); } @@ -462,3 +460,2 @@ void VMemo::record(void) result = read(dsp, sound, 512); // 8192 - qApp->processEvents(); int j=0; @@ -468,3 +465,2 @@ void VMemo::record(void) } - qApp->processEvents(); length+=write(wav, monoBuffer, result); @@ -475,3 +471,2 @@ void VMemo::record(void) } - qApp->processEvents(); length+=write(wav, monoBuffer, result/2); @@ -479,6 +474,4 @@ void VMemo::record(void) length += result; - printf("%d\r",length); - fflush(stdout); - - qApp->processEvents(); +// printf("%d\r",length); +// fflush(stdout); } @@ -494,4 +487,2 @@ void VMemo::record(void) result = read(dsp, sound, 512); // 8192 - qApp->processEvents(); - write(wav, sound, result); @@ -501,4 +492,4 @@ void VMemo::record(void) } - printf("%d\r",length); - fflush(stdout); +// printf("%d\r",length); +// fflush(stdout); // qDebug("file has length of %d lasting %d seconds", |