Lines Matching full:peak
60 printf (" aiff - test AIFF file PEAK chunk\n") ;
61 printf (" caf - test CAF file PEAK chunk\n") ;
62 printf (" wav - test WAV file peak chunk\n") ;
130 /* Create some random data with a peak value of 0.66. */
140 /* Write a file with PEAK chunks. */
143 /* Try to confuse the header writer by adding a removing the PEAK chunk. */
180 { printf ("\n\nLine %d: Bad peak value (%f should be %f) for command SFC_GET_SIGNAL_MAX.\n", __LINE__, data [0], (frames / 2) * 0.01) ;
190 { printf ("\n\nLine %d: Bad peak value (%f should be %f) for command SFC_GET_MAX_ALL_CHANNELS.\n", __LINE__, data [0], (frames / 2) * 0.01) ;
207 /* Write a file ***without*** PEAK chunks. */
210 /* Try to confuse the header writer by adding a removing the PEAK chunk. */
245 if (strstr (log_buffer, "PEAK :") != NULL)
246 { printf ("\n\nLine %d: Should not have a PEAK chunk in this file.\n\n", __LINE__) ;
286 { printf ("\n\nLine %d: Can't find PEAK data.\n", __LINE__) ;
300 { printf ("\n\nLine %d: peak position for channel %d should not be at offset 0.\n", __LINE__, chan) ;
305 { printf ("\n\nLine %d: Error : peak value incorrect!\n", __LINE__) ;
333 /* Open the file, add peak chunk and write samples with value 0.1. */
354 exit_if_true (max_peak < 0.1, "\n\nLine %d : max peak (%5.3f) should not be 0.1.\n\n", __LINE__, max_peak) ;
356 /* Open the file and test the values written to the PEAK chunk. */
366 exit_if_true (max_peak < 1.0, "\n\nLine %d : max peak (%5.3f) should be 1.0.\n\n", __LINE__, max_peak) ;