Site Tools


documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:12pgs040

minmax_audio

Measures the maximum and minimum output from the DSP.

Synopsis

minmax_audio

Description

Samples the output of the DSP and returns its maximum and minimum output values. You can use minmax_audio to check that your program outputs are reasonable, non-clipping levels of audio.

The program creates instances of probes from the instruments minimum.dsp and maximum.dsp. The probes are queried with ReadProbe() every five seconds, or 5*240 audio ticks.

In Opera hardware, the DSP implementation is 16-bit; therefore, the output for the left and right channels range from 32767 to -32768.

Caveats

The loudness of audio is often subjective. Check the loudness of your program by first playing a standard audio CD on a development station, and adjusting the volume of your sound system to a reasonable level. The 3DO program should then produce sounds at a similar volume.

Associated Files

minmax_audio.c

Location

examples/Audio

documentation/development/opera/pf25/ppgfldr/smmfldr/gspfldr/12pgs040.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1