More examples available ?

Discussions for GoldWave plug-in development
Post Reply
vaquar
Posts: 2
Joined: Fri Feb 18, 2005 1:06 pm

More examples available ?

Post by vaquar »

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 :oops:

Thank you
GoldWave Inc.
Site Admin
Posts: 4372
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: More examples available ?

Post by GoldWave Inc. »

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