summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 25ee476..bba55a3 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -302,16 +302,17 @@ int VMemo::openWAV(const char *filename)
302 qDebug("Could not open file"); 302 qDebug("Could not open file");
303 return -1; 303 return -1;
304 } 304 }
305 wav=track.handle(); 305 wav=track.handle();
306 306
307 WaveHeader wh; 307 WaveHeader wh;
308 308
309 wh.main_chunk = RIFF;// RIFF 309 wh.main_chunk = RIFF;// RIFF
310 wh.length=0; /* filelen */
310 wh.chunk_type = WAVE;//WAVE 311 wh.chunk_type = WAVE;//WAVE
311 wh.sub_chunk = FMT;// fmt 312 wh.sub_chunk = FMT;// fmt
312 wh.sc_len = 16;// format length = 16 313 wh.sc_len = 16;// format length = 16
313 wh.format = PCM_CODE;// PCM 314 wh.format = PCM_CODE;// PCM
314 wh.modus = channels;// channels 315 wh.modus = channels;// channels
315 wh.sample_fq = speed;//samplerate 316 wh.sample_fq = speed;//samplerate
316 wh.byte_p_sec = speed * channels * resolution/8;// av bytes per second 317 wh.byte_p_sec = speed * channels * resolution/8;// av bytes per second
317 wh.byte_p_spl = channels * (resolution / 8); //block align 318 wh.byte_p_spl = channels * (resolution / 8); //block align