|
◆ CreateOutputObjects()
Create new objects on the output side. Only out-of-place object processors (plugins implementing AK::IAkOutOfPlaceObjectPlugin) may create output objects. If successful, the newly constructed objects will be available in out_ppBuffer/out_ppObjects. To obtain all the output objects in a single array after having created objects using this function, use GetOutputObjects, or wait for the next call to AK::IAkOutOfPlaceObjectPlugin::Execute where output objects are passed via the in_pObjectBuffersOut/in_pObjectsOut arguments. Object processors inform the host that an output object may be disposed of by setting its state to AK_NoMoreData from within AK::IAkOutOfPlaceObjectPlugin::Execute.
| 注釈: You should never store the pointers returned by out_ppBuffer/out_ppObjects, as the location of pointed objects may change at each frame, or after subsequent calls to CreateOutputObjects. |
- 戻り値
- AK_Success if all objects were created successfully, AK_Fail otherwise. The optional arguments out_ppBuffer and out_ppObjects may be used to obtain the output objects newly created.
- 参照
-
- 引数
-
in_channelConfig | Desired channel configuration for all new objects. |
io_objects | AkAudioObjects::uNumObjects, the number of objects to create. AkAudioObjects::ppObjectBuffers, Returned array of pointers to the object buffers newly created, allocated by the caller. Pass nullptr if they're not needed. AkAudioObjects::ppObjects, Returned array of pointers to the objects newly created, allocated by the caller. Pass nullptr if they're not needed. |
|