Skip to content

Commit

Permalink
clarify ebur128_true_peak API
Browse files Browse the repository at this point in the history
  • Loading branch information
jiixyj committed Nov 25, 2013
1 parent c6c5425 commit 532e96e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ebur128/ebur128.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,13 @@ int ebur128_sample_peak(ebur128_state* st,

/** \brief Get maximum true peak of selected channel in float format.
*
* Uses the Speex resampler with quality level 8 to calculate true peak. Will
* oversample 4x for sample rates < 96000 Hz, 2x for sample rates < 192000 Hz
* and leave the signal unchanged for 192000 Hz.
* Uses an implementation defined algorithm to calculate the true peak. Do not
* try to compare resulting values across different versions of the library,
* as the algorithm may change.
*
* The current implementation uses the Speex resampler with quality level 8 to
* calculate true peak. Will oversample 4x for sample rates < 96000 Hz, 2x for
* sample rates < 192000 Hz and leave the signal unchanged for 192000 Hz.
*
* @param st library state
* @param channel_number channel to analyse
Expand Down

0 comments on commit 532e96e

Please sign in to comment.