pub unsafe extern "C" fn obs_volmeter_set_update_interval(
    volmeter: *mut obs_volmeter_t,
    ms: c_uint
)
Expand description

@brief Set the update interval for the volume meter @param volmeter pointer to the volume meter object @param ms update interval in ms

This sets the update interval in milliseconds that should be processed before the resulting values are emitted by the levels_updated signal. The resulting number of audio samples is rounded to an integer.

Please note that due to way obs does receive audio data from the sources this is no hard guarantee for the timing of the signal itself. When the volume meter receives a chunk of data that is multiple the size of the sample interval, all data will be sampled and the values updated accordingly, but only the signal for the last segment is actually emitted. On the other hand data might be received in a way that will cause the signal to be emitted in shorter intervals than specified here under some circumstances.