Hi,
I can compile samples provided. But I needed example to be able to call from host program.
I've created "test.pig" and have no idea of right steps to call functions.
Like how to I create/initiate "AudioFile".
Help file doesn't show initiation sequence.
May be I can't see it.
Please help
Thank you
More examples available ?
-
- Site Admin
- Posts: 4372
- Joined: Wed Mar 10, 2004 6:43 pm
- Location: St. John's, NL
- Contact:
Re: More examples available ?
You need to derive a class from AudioFile. The derived object is created by using "new". See the AudioCreate function in the SampleFile.cpp.
Also note how the AudioCreate function is assigned in the SampleInterface structure, which the host program uses.
Host -> SampleInterface.create = AudioCreate -> return new File
See section IV.11 in the guide for information about how the host program uses the plug-in.
Chris
Also note how the AudioCreate function is assigned in the SampleInterface structure, which the host program uses.
Host -> SampleInterface.create = AudioCreate -> return new File
See section IV.11 in the guide for information about how the host program uses the plug-in.
Chris