Cast void* to memcpy to get a float value
问题 Here is an example of the problem I'm trying to solve I get a buffer from the microphone and try and process it content. as kindly guided from this question Im trying to convert a char* to float* the logic I declare a vector to hold my desired float then resize it to that of ArBuffer() and then copy to the vector. ArBuffer() is a void gonna have to cast this to memcpy? #include "Lib_api.h" #include <alsa/asoundlib.h> #include <stdio.h> #include "audiorecorder.h" #include "Globals.h" #include