pub unsafe extern "C" fn projectm_pcm_add_float(
    instance: projectm_handle,
    samples: *const f32,
    count: c_uint,
    channels: projectm_channels
)
Expand description

@brief Adds 32-bit floating-point audio samples.

This function is used to add new audio data to projectM’s internal audio buffer. It is internally converted to 2-channel float data, duplicating the channel.

If stereo, the channel order in samples is LRLRLR.

@param instance The projectM instance handle. @param samples An array of PCM samples. Each sample is expected to be within the range -1 to 1. @param count The number of audio samples in a channel. @param channels If the buffer is mono or stereo. Can be PROJECTM_MONO or PROJECTM_STEREO.