Page 1 of 1

Information Regarding Read function in SampleFile.cpp

PostPosted: Fri Nov 14, 2008 8:19 am
by Ansha
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

Information Regarding Read function in SampleFile.cpp

PostPosted: Mon Nov 17, 2008 11:07 am
by Ansha
Hi,

This task is urgent for me can you please, explain me the details of Read function moreover arguments passing to this function.


Thanks