How to trim PCM data to identify sample count or frame count to feed?
问题 I want to feed libsamplerate (a library to downsample audio data which needs the following struct filled: typedef struct { float *data_in, *data_out ; long input_frames, output_frames ; long input_frames_used, output_frames_gen ; int end_of_input ; double src_ratio ; } SRC_DATA ; The fields of this struct which must be filled in by the caller are: data_in : A pointer to the input data samples. input_frames : The number of frames of data pointed to by data_in. data_out : A pointer to the