2015-08-30 Fred Gleason <fredg@paravelsystems.com>

* Added a --frames=' parameter in 'tests/audio_peaks_test.cpp'.
	* Fixed a benchpost bug in generating peak energy data in
	'lib/rdwavefile.cpp'.
This commit is contained in:
Fred Gleason
2015-08-31 12:03:45 -04:00
parent c9eb7884fc
commit 07869f9ee9
4 changed files with 28 additions and 2 deletions

View File

@@ -4146,7 +4146,7 @@ bool RDWaveFile::MakeLevl()
WriteDword(levl_chunk_data,16,levl_channels); // Channels
WriteDword(levl_chunk_data,20,levl_frames); // Total Peak Values
WriteDword(levl_chunk_data,24,levl_peak_offset); // Offset to Peak-of-Peaks
WriteDword(levl_chunk_data,28,128); // Offset to Peak Data
WriteDword(levl_chunk_data,28,132); // Offset to Peak Data
sprintf((char *)levl_chunk_data+32,"%s",
(const char *)levl_timestamp.toString("yyyy:MM:dd:hh:mm:ss:000"));