author | llornkcor <llornkcor> | 2002-05-23 02:03:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-23 02:03:12 (UTC) |
commit | d295491048567c8424643b983a21dc503857d91a (patch) (unidiff) | |
tree | 54cc32b49eef8518ffbeeacb99ffcbb35ec60769 /core/applets/vmemo | |
parent | 7cec3bc3d3b8945e80c9171b9173d3d2dbdd2eaf (diff) | |
download | opie-d295491048567c8424643b983a21dc503857d91a.zip opie-d295491048567c8424643b983a21dc503857d91a.tar.gz opie-d295491048567c8424643b983a21dc503857d91a.tar.bz2 |
new sound config
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index c27050d..7cc4062 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -269,7 +269,7 @@ bool VMemo::startRecording() { | |||
269 | 269 | ||
270 | if ( recording) | 270 | if ( recording) |
271 | return FALSE;; | 271 | return FALSE;; |
272 | Config config( "Sound" ); | 272 | Config config( "Vmemo" ); |
273 | config.setGroup( "System" ); | 273 | config.setGroup( "System" ); |
274 | useAlerts = config.readBoolEntry("Alert"); | 274 | useAlerts = config.readBoolEntry("Alert"); |
275 | 275 | ||
@@ -288,16 +288,14 @@ bool VMemo::startRecording() { | |||
288 | return FALSE; | 288 | return FALSE; |
289 | } | 289 | } |
290 | 290 | ||
291 | Config vmCfg("VMemo"); | 291 | config.setGroup("Defaults"); |
292 | vmCfg.setGroup("Defaults"); | ||
293 | 292 | ||
294 | QDateTime dt = QDateTime::currentDateTime(); | 293 | QDateTime dt = QDateTime::currentDateTime(); |
295 | 294 | ||
296 | QString fName; | 295 | QString fName; |
297 | Config cfg( "Sound" ); | 296 | config.setGroup( "System" ); |
298 | cfg.setGroup( "System" ); | ||
299 | fName = QPEApplication::documentDir() ; | 297 | fName = QPEApplication::documentDir() ; |
300 | fileName = cfg.readEntry("RecLocation", fName); | 298 | fileName = config.readEntry("RecLocation", fName); |
301 | 299 | ||
302 | int s; | 300 | int s; |
303 | s=fileName.find(':'); | 301 | s=fileName.find(':'); |
@@ -325,7 +323,7 @@ bool VMemo::startRecording() { | |||
325 | } | 323 | } |
326 | 324 | ||
327 | QArray<int> cats(1); | 325 | QArray<int> cats(1); |
328 | cats[0] = vmCfg.readNumEntry("Category", 0); | 326 | cats[0] = config.readNumEntry("Category", 0); |
329 | 327 | ||
330 | QString dlName("vm_"); | 328 | QString dlName("vm_"); |
331 | dlName += dt.toString(); | 329 | dlName += dt.toString(); |
@@ -346,7 +344,7 @@ void VMemo::stopRecording() { | |||
346 | 344 | ||
347 | int VMemo::openDSP() | 345 | int VMemo::openDSP() |
348 | { | 346 | { |
349 | Config cfg("Sound"); | 347 | Config cfg("Vmemo"); |
350 | cfg.setGroup("Record"); | 348 | cfg.setGroup("Record"); |
351 | 349 | ||
352 | speed = cfg.readNumEntry("SampleRate", 22050); | 350 | speed = cfg.readNumEntry("SampleRate", 22050); |