author | llornkcor <llornkcor> | 2002-04-27 04:33:57 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-27 04:33:57 (UTC) |
commit | e2f3288d468508f2cf7c0a327044963ca4b1b54a (patch) (unidiff) | |
tree | d149829fdc65a58b6feb200868bd0f28c5f37cd0 | |
parent | 8ca9c8dad17ccaee9b0b8132324176c2a8e40526 (diff) | |
download | opie-e2f3288d468508f2cf7c0a327044963ca4b1b54a.zip opie-e2f3288d468508f2cf7c0a327044963ca4b1b54a.tar.gz opie-e2f3288d468508f2cf7c0a327044963ca4b1b54a.tar.bz2 |
bug fix
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 4b668de..ec46340 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -13,28 +13,28 @@ | |||
13 | * $Id$ | 13 | * $Id$ |
14 | */ | 14 | */ |
15 | // Sun 03-17-2002 L.J.Potter <ljp@llornkcor.com> | 15 | // Sun 03-17-2002 L.J.Potter <ljp@llornkcor.com> |
16 | #include <sys/utsname.h> | 16 | #include <sys/utsname.h> |
17 | #include <sys/time.h> | 17 | #include <sys/time.h> |
18 | #include <sys/types.h> | 18 | #include <sys/types.h> |
19 | #include <unistd.h> | 19 | #include <unistd.h> |
20 | #include <stdio.h> | 20 | #include <stdio.h> |
21 | #include <sys/stat.h> | 21 | #include <sys/stat.h> |
22 | #include <fcntl.h> | 22 | #include <fcntl.h> |
23 | #include <sys/ioctl.h> | 23 | #include <sys/ioctl.h> |
24 | #include <linux/soundcard.h> | 24 | #include <linux/soundcard.h> |
25 | |||
25 | #include <string.h> | 26 | #include <string.h> |
26 | #include <stdlib.h> | 27 | #include <stdlib.h> |
27 | #include <errno.h> | 28 | #include <errno.h> |
28 | #include <string.h> | ||
29 | 29 | ||
30 | typedef struct _waveheader { | 30 | typedef struct _waveheader { |
31 | u_long main_chunk; /* 'RIFF' */ | 31 | u_long main_chunk; /* 'RIFF' */ |
32 | u_long length; /* filelen */ | 32 | u_long length; /* filelen */ |
33 | u_long chunk_type; /* 'WAVE' */ | 33 | u_long chunk_type; /* 'WAVE' */ |
34 | u_long sub_chunk; /* 'fmt ' */ | 34 | u_long sub_chunk; /* 'fmt ' */ |
35 | u_long sc_len; /* length of sub_chunk, =16 | 35 | u_long sc_len; /* length of sub_chunk, =16 |
36 | (chunckSize) format len */ | 36 | (chunckSize) format len */ |
37 | u_short format; /* should be 1 for PCM-code (formatTag) */ | 37 | u_short format; /* should be 1 for PCM-code (formatTag) */ |
38 | 38 | ||
39 | u_short modus; /* 1 Mono, 2 Stereo (channels) */ | 39 | u_short modus; /* 1 Mono, 2 Stereo (channels) */ |
40 | u_long sample_fq; /* samples per second (samplesPerSecond) */ | 40 | u_long sample_fq; /* samples per second (samplesPerSecond) */ |
@@ -284,25 +284,25 @@ void VMemo::mousePressEvent( QMouseEvent *me ) | |||
284 | 284 | ||
285 | QString fName; | 285 | QString fName; |
286 | Config cfg( "Sound" ); | 286 | Config cfg( "Sound" ); |
287 | cfg.setGroup( "System" ); | 287 | cfg.setGroup( "System" ); |
288 | fName = QPEApplication::documentDir() ; | 288 | fName = QPEApplication::documentDir() ; |
289 | fileName = cfg.readEntry("RecLocation", fName); | 289 | fileName = cfg.readEntry("RecLocation", fName); |
290 | 290 | ||
291 | int s; | 291 | int s; |
292 | s=fileName.find(':'); | 292 | s=fileName.find(':'); |
293 | if(s) | 293 | if(s) |
294 | fileName=fileName.right(fileName.length()-s-2); | 294 | fileName=fileName.right(fileName.length()-s-2); |
295 | qDebug("filename will be "+fileName); | 295 | qDebug("filename will be "+fileName); |
296 | if( !fileName.right(1).find('/') == -1) | 296 | if( fileName.right(1).find('/') == -1) |
297 | fileName+="/"; | 297 | fileName+="/"; |
298 | 298 | ||
299 | // if(systemZaurus) | 299 | // if(systemZaurus) |
300 | // fileName=vmCfg.readEntry("Dir", "/mnt/cf/"); // zaurus does not have /mnt/ramfs | 300 | // fileName=vmCfg.readEntry("Dir", "/mnt/cf/"); // zaurus does not have /mnt/ramfs |
301 | // else | 301 | // else |
302 | // fileName=vmCfg.readEntry("Dir", "/mnt/ramfs/"); | 302 | // fileName=vmCfg.readEntry("Dir", "/mnt/ramfs/"); |
303 | 303 | ||
304 | fName = "vm_"+ dt.toString()+ ".wav"; | 304 | fName = "vm_"+ dt.toString()+ ".wav"; |
305 | 305 | ||
306 | fileName+=fName; | 306 | fileName+=fName; |
307 | qDebug("filename is "+fileName); | 307 | qDebug("filename is "+fileName); |
308 | // No spaces in the filename | 308 | // No spaces in the filename |