author | llornkcor <llornkcor> | 2002-02-15 03:04:38 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-15 03:04:38 (UTC) |
commit | 7c4ee87ab334a8e245d8345b378400bf787a7d5a (patch) (unidiff) | |
tree | ddf4f90a7cdd18c62f07e4cc2b28cdb6f79481aa | |
parent | b429144b79049fcc25dfff5a9a38415451399e58 (diff) | |
download | opie-7c4ee87ab334a8e245d8345b378400bf787a7d5a.zip opie-7c4ee87ab334a8e245d8345b378400bf787a7d5a.tar.gz opie-7c4ee87ab334a8e245d8345b378400bf787a7d5a.tar.bz2 |
cleaned up comments
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index bba55a3..9c0025d 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -306,19 +306,19 @@ int VMemo::openWAV(const char *filename) | |||
306 | 306 | ||
307 | WaveHeader wh; | 307 | WaveHeader wh; |
308 | 308 | ||
309 | wh.main_chunk = RIFF;// RIFF | 309 | wh.main_chunk = RIFF; |
310 | wh.length=0; /* filelen */ | 310 | wh.length=0; |
311 | wh.chunk_type = WAVE;//WAVE | 311 | wh.chunk_type = WAVE; |
312 | wh.sub_chunk = FMT;// fmt | 312 | wh.sub_chunk = FMT; |
313 | wh.sc_len = 16;// format length = 16 | 313 | wh.sc_len = 16; |
314 | wh.format = PCM_CODE;// PCM | 314 | wh.format = PCM_CODE; |
315 | wh.modus = channels;// channels | 315 | wh.modus = channels; |
316 | wh.sample_fq = speed;//samplerate | 316 | wh.sample_fq = speed; |
317 | wh.byte_p_sec = speed * channels * resolution/8;// av bytes per second | 317 | wh.byte_p_sec = speed * channels * resolution/8; |
318 | wh.byte_p_spl = channels * (resolution / 8); //block align | 318 | wh.byte_p_spl = channels * (resolution / 8); |
319 | wh.bit_p_spl = resolution;//bits per sample 8, or 16 | 319 | wh.bit_p_spl = resolution; |
320 | wh.data_chunk = DATA; | 320 | wh.data_chunk = DATA; |
321 | wh.data_length= 0; // <--- | 321 | wh.data_length= 0; |
322 | // qDebug("Write header channels %d, speed %d, b/s %d, blockalign %d, bitrate %d" | 322 | // qDebug("Write header channels %d, speed %d, b/s %d, blockalign %d, bitrate %d" |
323 | // , wh.modus, wh.sample_fq, wh.byte_p_sec, wh.byte_p_spl, wh.bit_p_spl ); | 323 | // , wh.modus, wh.sample_fq, wh.byte_p_sec, wh.byte_p_spl, wh.bit_p_spl ); |
324 | write (wav, &wh, sizeof(WaveHeader)); | 324 | write (wav, &wh, sizeof(WaveHeader)); |
@@ -356,7 +356,7 @@ void VMemo::record(void) | |||
356 | // qDebug("File length %d, samplecount %d", value, length); | 356 | // qDebug("File length %d, samplecount %d", value, length); |
357 | track.close(); | 357 | track.close(); |
358 | 358 | ||
359 | if( ioctl( dsp, SNDCTL_DSP_RESET,0) == -1)// ); //tell driver to stop for a while | 359 | if( ioctl( dsp, SNDCTL_DSP_RESET,0) == -1) |
360 | perror("ioctl(\"SNDCTL_DSP_RESET\")"); | 360 | perror("ioctl(\"SNDCTL_DSP_RESET\")"); |
361 | ::close(dsp); | 361 | ::close(dsp); |
362 | 362 | ||