pub unsafe extern "C" fn projectm_pcm_add_uint8(
instance: projectm_handle,
samples: *const u8,
count: c_uint,
channels: projectm_channels,
)Expand description
@brief Adds 8-bit unsigned integer 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. @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.