THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/02/2007 at 11:05, xxxxxxxx wrote:
You'll need to create a sound track for the object for starters:
BaseObject* obj; // object to receive track
BaseDocument* doc; // document that contains obj
// Check for Sound track, create if none
DescID descID = DescLevel(ID_ANIM_SOUND,ID_ANIM_SOUND,0);
CTrack* track = obj->FindCTrack(descID);
track = CTrack::Alloc(obj, descID);
if (!track) return FALSE; // Alloc Error
Then you'll have to look at the resource:modules:newman:res:description:ctsound.res file for information to set the start time and sound file on the track. These will probably require SetParameter().
This method has not been tested, so there are no guarantees that it will work.