PeakVolumes#

class carb.audio.PeakVolumes#

Bases: pybind11_object

Used to retrieve the peak volume information for a sound data object. This contains one volume level per channel in the stream and the frame in the stream at which the peak occurs.

Methods

__init__(*args, **kwargs)

Attributes

channels

The number of channels with valid peak data in the arrays below.

peak_frame

The frame that the overall peak volume occurs at in the sound.

peak_volume

The peak volume among all channels of data.

__init__(*args, **kwargs)#
property channels#

The number of channels with valid peak data in the arrays below.

property peak_frame#

The frame that the overall peak volume occurs at in the sound.

property peak_volume#

The peak volume among all channels of data.