Ogg to Riff/Wave encoding with acm
问题 My task is to record wave file, convert it to ogg and pack it to the riff container. First two parts were done, but I have problems with the third part. I've found a source code which can solve my problem, but it doesn't work correctly. #include <windows.h> #include <windowsx.h> #include <mmsystem.h> #include <memory.h> #include <stdlib.h> #include <mmreg.h> #include <msacm.h> #include <assert.h> #include <math.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #define INPUT