CRI ADX  Last Updated: 2024-07-17 10:47 p
Displaying Meters

Samples Directory

/CRIWARE/SDK/pc/samples/criatomex/display_meter


Sample Description

The Atom library includes the following meter functions that measure the output sound.
  • Level meter (Peak/RMS)
  • Loudness meter
  • True peak meter
The following code demonstrates the use of these various meter functions.


CriAtomLevelInfo level_info;
CriAtomLoudnessInfo loudness_info;
CriAtomTruePeakInfo truepeak_info;
/* Add level meter function */
/* Add loudness meter function */
/* Add true peak meter function */
for(;;) {
/* Wait for V-sync */
criFwSys_WaitVsync();
/* Execute server processing */
/* Acquire level measurement results */
/* Acquire loudness measurement results */
/* Acquire true peak measurement results */
}
/* Destroy meter functions */
void criAtomEx_ExecuteMain(void)
Execute the server processing.
void criAtomMeter_AttachLoudnessMeter(const CriAtomLoudnessMeterConfig *config, void *work, CriSint32 work_size)
Add loudness meter function.
void criAtomMeter_GetTruePeakInfo(CriAtomTruePeakInfo *info)
Obtain true peak information.
void criAtomMeter_DetachLoudnessMeter(void)
Remove loudness meter function.
void criAtomMeter_DetachLevelMeter(void)
Remove level meter function.
void criAtomMeter_GetLoudnessInfo(CriAtomLoudnessInfo *info)
Obtain loudness information.
void criAtomMeter_DetachTruePeakMeter(void)
Remove true peak meter function.
void criAtomMeter_GetLevelInfo(CriAtomLevelInfo *info)
Obtain level information.
void criAtomMeter_AttachLevelMeter(const CriAtomLevelMeterConfig *config, void *work, CriSint32 work_size)
Add level meter function.
void criAtomMeter_AttachTruePeakMeter(const CriAtomTruePeakMeterConfig *config, void *work, CriSint32 work_size)
Add true peak meter function.
Level information.
Definition: cri_le_atom.h:2929
Loudness information.
Definition: cri_le_atom.h:3003
True peak information.
Definition: cri_le_atom.h:3080


For a detailed explanation about these meters, click here.