SSpSource_SetCameraPlacement
You can use theSSpSource_SetCameraPlacement
function to set the position, orientation, and up vector of a sound source.
OSStatus SSpSource_SetCameraPlacement ( SSpSourceReference inSourceReference, const TQ3CameraPlacement *inCameraPlacement);
inSourceReference
- A source reference.
inCameraPlacement
- A pointer to a camera placement structure that specifies the desired position, orientation, and up vector of the sound source.
- function result
- A result code.
DESCRIPTION
TheSSpSource_SetCameraPlacement
function sets the position, orientation, and up vector of the sound source specified by theinSourceReference
parameter to the values contained in the camera placement structure pointed to by theinCameraPlacement
parameter. This function is provided as a convenient method for setting that information in a single function call.
- Note
- The
TQ3CameraPlacement
data type is defined by QuickDraw 3D. See 3D Graphics Programming With QuickDraw 3D for details.SEE ALSO
Instead of callingSSpSource_SetCameraPlacement
, you could callSSpSource_SetPosition
,SSpSource_SetOrientation
, andSSpSource_SetUpVector
.