Information Regarding Read function in SampleFile.cpp

Discussions for GoldWave plug-in development
Post Reply
Ansha
Posts: 2
Joined: Fri Nov 14, 2008 8:38 am

Information Regarding Read function in SampleFile.cpp

Post 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
Ansha
Posts: 2
Joined: Fri Nov 14, 2008 8:38 am

Information Regarding Read function in SampleFile.cpp

Post 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
Post Reply