author | llornkcor <llornkcor> | 2002-07-29 12:30:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-29 12:30:16 (UTC) |
commit | a7064f7b9a6515cc1e26823a2f969d90feb855a2 (patch) (unidiff) | |
tree | dc3809cff5a147edb1186de689ae9184a99a4209 /core/applets/vmemo/vmemo.cpp | |
parent | 0868e96b1737d121733c898ae92348a279e5b53f (diff) | |
download | opie-a7064f7b9a6515cc1e26823a2f969d90feb855a2.zip opie-a7064f7b9a6515cc1e26823a2f969d90feb855a2.tar.gz opie-a7064f7b9a6515cc1e26823a2f969d90feb855a2.tar.bz2 |
fix
Diffstat (limited to 'core/applets/vmemo/vmemo.cpp') (more/less context) (ignore whitespace changes)
-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() { | |||
368 | fileName.replace(QRegExp(","),""); | 368 | fileName.replace(QRegExp(","),""); |
369 | fileName += ".wav"; | 369 | |
370 | 370 | ||
@@ -388,4 +388,8 @@ bool VMemo::startRecording() { | |||
388 | QString cmd; | 388 | QString cmd; |
389 | if( fileName.find(".wav",0,TRUE) == -1) | ||
390 | fileName += ".wav"; | ||
391 | |||
389 | cmd.sprintf("mv %s "+fileName, pointer); | 392 | cmd.sprintf("mv %s "+fileName, pointer); |
390 | // move tmp file to regular file here | 393 | // move tmp file to regular file here |
394 | |||
391 | system(cmd.latin1()); | 395 | system(cmd.latin1()); |
@@ -485,2 +489,4 @@ int VMemo::openWAV(const char *filename) { | |||
485 | wav=track.handle(); | 489 | wav=track.handle(); |
490 | Config vmCfg("Vmemo"); | ||
491 | vmCfg.setGroup("Defaults"); | ||
486 | useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); | 492 | useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); |
@@ -535,2 +541,4 @@ bool VMemo::record() { | |||
535 | short sbuf[bufsize]; | 541 | short sbuf[bufsize]; |
542 | Config vmCfg("Vmemo"); | ||
543 | vmCfg.setGroup("Defaults"); | ||
536 | useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); | 544 | useADPCM = vmCfg.readBoolEntry("use_ADPCM", 0); |
@@ -597,3 +605,3 @@ bool VMemo::record() { | |||
597 | ::close(dsp); | 605 | ::close(dsp); |
598 | fileName = fileName.left(fileName.length()-4); | 606 | |
599 | // if(useAlerts) | 607 | // if(useAlerts) |