author | llornkcor <llornkcor> | 2002-07-29 12:30:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-29 12:30:16 (UTC) |
commit | a7064f7b9a6515cc1e26823a2f969d90feb855a2 (patch) (side-by-side diff) | |
tree | dc3809cff5a147edb1186de689ae9184a99a4209 /core/applets/vmemo/vmemo.cpp | |
parent | 0868e96b1737d121733c898ae92348a279e5b53f (diff) | |
download | opie-a7064f7b9a6515cc1e26823a2f969d90feb855a2.zip opie-a7064f7b9a6515cc1e26823a2f969d90feb855a2.tar.gz opie-a7064f7b9a6515cc1e26823a2f969d90feb855a2.tar.bz2 |
fix
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 577db75..4b398ad 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -368,3 +368,3 @@ bool VMemo::startRecording() { fileName.replace(QRegExp(","),""); - fileName += ".wav"; + @@ -388,4 +388,8 @@ bool VMemo::startRecording() { QString cmd; + if( fileName.find(".wav",0,TRUE) == -1) + fileName += ".wav"; + cmd.sprintf("mv %s "+fileName, pointer); // move tmp file to regular file here + system(cmd.latin1()); @@ -485,2 +489,4 @@ int VMemo::openWAV(const char *filename) { wav=track.handle(); + Config vmCfg("Vmemo"); + vmCfg.setGroup("Defaults"); useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); @@ -535,2 +541,4 @@ bool VMemo::record() { short sbuf[bufsize]; + Config vmCfg("Vmemo"); + vmCfg.setGroup("Defaults"); useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); @@ -597,3 +605,3 @@ bool VMemo::record() { ::close(dsp); - fileName = fileName.left(fileName.length()-4); + // if(useAlerts) |