Wwise SDK 2024.1.0
|
Wwise Authoring APIを使用してWwiseオブジェクトを作成するには、いくつかの方法があります。
It is possible to create most Wwise Objects using ak.wwise.core.object.set and ak.wwise.core.object.create. To learn more about the limitations, refer to ak.wwise.core.object.createの制限事項 and Limitations with ak.wwise.core.object.create and ak.wwise.core.object.set.
注釈: ak.wwise.core.object.set offers a superset of the functionalities offered in ak.wwise.core.object.create. We recommend using ak.wwise.core.object.set. |
Advantages of ak.wwise.core.object.set over ak.wwise.core.object.create :
When calling ak.wwise.core.object.create, or ak.wwise.core.object.set, it is possible to specify one of the four name conflict modes.
同じ名前の宛先にすでにオブジェクトが存在する場合は、次のようにします:
Lists are generic containers for storing objects. The objects in a given list are typically of the same type. Lists provide a convenient mechanism for populating and retrieving objects through WAAPI that are "owned" by another object. For example, the RTPCs for a given object are contained in the "RTPC" list of that object.
When calling ak.wwise.core.object.set, it is possible to specify one of two list modes.
If a list already contains objects:
For empty lists the behavior is to append.
サウンド
サウンドオブジェクトは、 ak.wwise.core.object.create を使い作成できます。However, there are significant limitations:
For this reason, we don't recommend using ak.wwise.core.object.create to create Sound objects that use WAV or MIDI files.
Instead, refer to:
Plug-ins
It is not possible to create plug-ins of the type Source, Effect, or Metadata with ak.wwise.core.object.create. Use ak.wwise.core.object.set instead.
Work Units
Creating Work Units with ak.wwise.core.object.create and ak.wwise.core.object.set requires the undo/redo history and the clipboard to be cleared. Work Unitは作成と同時に保存されるので、その結果、対応するWWUファイルがプロジェクトに作成されます。
onNameConflict
引数は、必ず 'fail'
、 'merge'
、または 'rename'
とします。 'replace'
モードには対応していません。Queries
It is possible to create Query objects with ak.wwise.core.object.create and ak.wwise.core.object.set. However, the criteria objects need to be created with a specific GUID as the name. The name of the criteria must contain the GUID of the SearchOperationID
attribute as found in the WWU files. Each criteria type has a unique GUID.
To find the correct GUID to use in the name, you will need to reverse engineer the WWU files:
SearchOperationID
and use it for the SearchCriteria
name
in ak.wwise.core.object.set.Lists
It is not possible to create objects to populate the "Metadata" and "Clips" lists with ak.wwise.core.object.set.
Due to the limitations below we do not recommend creating objects in the "Sequences" and "Stingers" lists with ak.wwise.core.object.set.
詳細は、 ak.wwise.core.object.set を参照してください。
注釈: The object field indicates where to create the object in the project. The object field, like most Wwise object fields, supports object IDs (GUID) and object paths. オブジェクトIDを回収するには、 ak.wwise.core.object.get を参照してください。たとえば、プロジェクトパスでオブジェクトIDを回収できます。 |
注釈: To retrieve an object ID from a Wwise project, you can hold the Shift key while right-clicking an object, then select Copy GUID(s) to clipboard. |
More examples using ak.wwise.core.object.set to import audio files:
Audio files can be imported using the Wwise Authoring API by means of the same import processor available through the Tab Delimited import in the Audio File Importer.
Using the Wwise Authoring API allows complete automation of the import process and provides direct control in the programming language of your choice.
インポート形式により大きな柔軟性が得られます。以下をインポートすることができます::
At a glance, the audio file importation allows:
詳細については https://www.audiokinetic.com/library/edge/?source=Help&id=importing_media_files_from_tab_delimited_text_fileを参照してください。
注釈: ak.wwise.core.audio.importTabDelimited and ak.wwise.core.audio.import are the preferred ways to create Sound objects and import audio files at the same time. We do not recommend using ak.wwise.core.object.create or \ ref ak_wwise_core_object_set because it is currently not possible to associate an audio file and a language to created objects. |
例:
注釈: あなたのプロジェクトに、その言語が存在し、大文字小文字の区別も一致することを確認してください。 |