author | llornkcor <llornkcor> | 2002-07-29 12:18:47 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-29 12:18:47 (UTC) |
commit | b4827a8b268af9d1485455cdf727f564047f396e (patch) (side-by-side diff) | |
tree | e4cfe0063c4130337d46bce247e0430bf37ce70d /core/applets | |
parent | b79ef334c6d13beb4fe7fff1e6985c081081a2f6 (diff) | |
download | opie-b4827a8b268af9d1485455cdf727f564047f396e.zip opie-b4827a8b268af9d1485455cdf727f564047f396e.tar.gz opie-b4827a8b268af9d1485455cdf727f564047f396e.tar.bz2 |
fix bug number 140
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 035965e..0c792c6 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -479,12 +479,13 @@ int VMemo::openWAV(const char *filename) { if(!track.open(IO_WriteOnly|IO_Truncate|IO_Raw)) { errorMsg=filename; return -1; } wav=track.handle(); + useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); WaveHeader wh; wh.main_chunk = RIFF; wh.length=0; wh.chunk_type = WAVE; @@ -528,12 +529,13 @@ bool VMemo::record() { int bufsize=1024; int bytesWritten=0; signed short sound[1024], monoBuffer[1024]; char abuf[bufsize/2]; short sbuf[bufsize]; + useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); while(recording) { if(useADPCM) result = read( dsp, sbuf, bufsize); // 8192 else @@ -570,13 +572,12 @@ bool VMemo::record() { // printf("%d\r",length); // fflush(stdout); qApp->processEvents(); } // qDebug("file has length of %d lasting %d seconds", // length, (( length / speed) / channels) / 2 ); - // medialplayer states wrong length in secs // } //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<// value = length+36; |