summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 006e0ba..aa23ba7 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -370,34 +370,34 @@ void VMemo::record(void)
370 } 370 }
371 */ 371 */
372 qApp->processEvents(); 372 qApp->processEvents();
373 373
374 /* needed to only write one channel. comment out above "write/length" code. 374 /* needed to only write one channel. comment out above "write/length" code.
375 write(wav, leftBuffer, result / 2); 375 write(wav, leftBuffer, result / 2);
376 length += result/2; 376 length += result/2;
377 */ 377 */
378 378
379 write(wav, sound, result); 379 write(wav, sound, result);
380 length += result; 380 length += result;
381 381
382 qApp->processEvents(); 382 qApp->processEvents();
383 } 383 }
384 384
385 qWarning("VMemo::record() -> Done recording"); 385 qWarning("VMemo::record() -> Done recording");
386 qWarning("VMemo::record() -> Closing dsp"); 386 qWarning("VMemo::record() -> Closing dsp");
387 387
388 value = length+36; 388 value = length+36;
389 lseek(wav, 4, SEEK_SET); 389 lseek(wav, 4, SEEK_SET);
390 write(wav, &value, 4); 390 write(wav, &value, 4);
391 lseek(wav, 40, SEEK_SET); 391 lseek(wav, 40, SEEK_SET);
392 write(wav, &length, 4); 392 write(wav, &length, 4);
393 track.close(); 393 track.close();
394 394
395 if( ioctl( dsp, SNDCTL_DSP_RESET,0) == -1) 395 if( ioctl( dsp, SNDCTL_DSP_RESET,0) == -1)
396 perror("ioctl(\"SNDCTL_DSP_RESET\")"); 396 perror("ioctl(\"SNDCTL_DSP_RESET\")");
397 ::close(dsp); 397 ::close(dsp);
398 398
399 qWarning("VMemo::record() -> playing done recording sound"); 399 qWarning("VMemo::record() -> playing done recording sound");
400 QSound::play(Resource::findSound("vmemoe")); 400 QSound::play(Resource::findSound("vmemoe"));
401 qWarning("VMemo::record() -> terminating"); 401 qWarning("VMemo::record() -> terminating");
402 QMessageBox::information(0, "VMemo", "Recording Done", 1); 402 //QMessageBox::information(0, "VMemo", "Recording Done", 1);
403} 403}