Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Clippings/AddSourceName.txt
// Add the atoms naming the sources for our effect |
{ |
long myLong; |
if (gSpecCount >= 1) { |
myLong = EndianU32_NtoB(kSourceOneName); |
QTInsertChild(gEffectSample, kParentAtomIsContainer, kEffectSourceName, 1, 0, sizeof(myLong), &myLong, NULL); |
} |
if (gSpecCount >= 2) { |
myLong = EndianU32_NtoB(kSourceTwoName); |
QTInsertChild(gEffectSample, kParentAtomIsContainer, kEffectSourceName, 2, 0, sizeof(myLong), &myLong, NULL); |
} |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14