SSpSource_GetCameraPlacement
You can use theSSpSource_GetCameraPlacementfunction to get the position, orientation, and up vector of a sound source.
OSStatus SSpSource_GetCameraPlacement ( SSpSourceReference inSourceReference, TQ3CameraPlacement *outCameraPlacement);
inSourceReference- A source reference.
outCameraPlacement- On entry, a pointer to a camera placement structure. On exit, that structure is updated to specify the position, orientation, and up vector of the sound source.
- function result
- A result code.
DESCRIPTION
TheSSpSource_GetCameraPlacementfunction updates the camera placement structure pointed to by theoutCameraPlacementparameter to indicate the position, orientation, and up vector of the sound source specified by theinSourceReferenceparameter. (The point of interest of the camera placement is the sound source's position plus its orientation vector.) This function is provided as a convenient method for getting that information in a single function call.
- Note
- The
TQ3CameraPlacementdata type is defined by QuickDraw 3D. See 3D Graphics Programming With QuickDraw 3D for details.![]()
SEE ALSO
Instead of callingSSpSource_GetCameraPlacement, you could callSSpSource_GetPosition,SSpSource_GetOrientation, andSSpSource_GetUpVector.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help