Information Regarding Read function in SampleFile.cpp
Posted: Fri Nov 14, 2008 8:49 am
Hi,
I want to convert 24 bit, 48 KHz, PCM Stereo audio file to 16 bit, 48 KHz, PCM Stereo file programmatically. I have downloaded the SDK provided on your site.
In SampleFile.cpp, class File is declared. This contains Read, Write, Begin, End, ConvertAudio etc. functions. I am using these functions for conversion in my code.
Read function prototype is as below:
int gdecl File::Read( audio *dest, int samples )
I am not clear about what value to pass in the second argument. Same is in write function.
Please elaborate about this argument and function.
Any information would be extremely helpful.
Thanks
I want to convert 24 bit, 48 KHz, PCM Stereo audio file to 16 bit, 48 KHz, PCM Stereo file programmatically. I have downloaded the SDK provided on your site.
In SampleFile.cpp, class File is declared. This contains Read, Write, Begin, End, ConvertAudio etc. functions. I am using these functions for conversion in my code.
Read function prototype is as below:
int gdecl File::Read( audio *dest, int samples )
I am not clear about what value to pass in the second argument. Same is in write function.
Please elaborate about this argument and function.
Any information would be extremely helpful.
Thanks