Skip to main content

waapi_rs/
uris.rs

1//! WAAPI 函数 URI 常量(单文件,嵌套 mod 与 URI 路径对应)
2//! 使用示例:`client.call(waapi_rs::uris::ak::wwise::waapi::GET_TOPICS, None, None)`
3
4pub mod ak {
5    /// ak.soundengine.*
6    pub mod soundengine {
7        pub const EXECUTE_ACTION_ON_EVENT: &str = "ak.soundengine.executeActionOnEvent";
8        pub const GET_STATE: &str = "ak.soundengine.getState";
9        pub const GET_SWITCH: &str = "ak.soundengine.getSwitch";
10        pub const LOAD_BANK: &str = "ak.soundengine.loadBank";
11        pub const POST_EVENT: &str = "ak.soundengine.postEvent";
12        pub const POST_MSG_MONITOR: &str = "ak.soundengine.postMsgMonitor";
13        pub const POST_TRIGGER: &str = "ak.soundengine.postTrigger";
14        pub const REGISTER_GAME_OBJ: &str = "ak.soundengine.registerGameObj";
15        pub const RESET_RTPC_VALUE: &str = "ak.soundengine.resetRTPCValue";
16        pub const SEEK_ON_EVENT: &str = "ak.soundengine.seekOnEvent";
17        pub const SET_DEFAULT_LISTENERS: &str = "ak.soundengine.setDefaultListeners";
18        pub const SET_GAME_OBJECT_AUX_SEND_VALUES: &str =
19            "ak.soundengine.setGameObjectAuxSendValues";
20        pub const SET_GAME_OBJECT_OUTPUT_BUS_VOLUME: &str =
21            "ak.soundengine.setGameObjectOutputBusVolume";
22        pub const SET_LISTENERS: &str = "ak.soundengine.setListeners";
23        pub const SET_LISTENER_SPATIALIZATION: &str =
24            "ak.soundengine.setListenerSpatialization";
25        pub const SET_MULTIPLE_POSITIONS: &str = "ak.soundengine.setMultiplePositions";
26        pub const SET_OBJECT_OBSTRUCTION_AND_OCCLUSION: &str =
27            "ak.soundengine.setObjectObstructionAndOcclusion";
28        pub const SET_POSITION: &str = "ak.soundengine.setPosition";
29        pub const SET_RTPC_VALUE: &str = "ak.soundengine.setRTPCValue";
30        pub const SET_SCALING_FACTOR: &str = "ak.soundengine.setScalingFactor";
31        pub const SET_STATE: &str = "ak.soundengine.setState";
32        pub const SET_SWITCH: &str = "ak.soundengine.setSwitch";
33        pub const STOP_ALL: &str = "ak.soundengine.stopAll";
34        pub const STOP_PLAYING_ID: &str = "ak.soundengine.stopPlayingID";
35        pub const UNLOAD_BANK: &str = "ak.soundengine.unloadBank";
36        pub const UNREGISTER_GAME_OBJ: &str = "ak.soundengine.unregisterGameObj";
37    }
38
39    /// ak.wwise.*
40    pub mod wwise {
41        /// ak.wwise.core.*
42        pub mod core {
43            pub const AUDIO_CONVERT: &str = "ak.wwise.core.audio.convert";
44            pub const AUDIO_IMPORT: &str = "ak.wwise.core.audio.import";
45            pub const AUDIO_IMPORT_TAB_DELIMITED: &str = "ak.wwise.core.audio.importTabDelimited";
46            pub const AUDIO_MUTE: &str = "ak.wwise.core.audio.mute";
47            pub const AUDIO_RESET_MUTE: &str = "ak.wwise.core.audio.resetMute";
48            pub const AUDIO_RESET_SOLO: &str = "ak.wwise.core.audio.resetSolo";
49            pub const AUDIO_SET_CONVERSION_PLUGIN: &str =
50                "ak.wwise.core.audio.setConversionPlugin";
51            pub const AUDIO_SOLO: &str = "ak.wwise.core.audio.solo";
52            pub const AUDIO_SOURCE_PEAKS_GET_MIN_MAX_PEAKS_IN_REGION: &str =
53                "ak.wwise.core.audioSourcePeaks.getMinMaxPeaksInRegion";
54            pub const AUDIO_SOURCE_PEAKS_GET_MIN_MAX_PEAKS_IN_TRIMMED_REGION: &str =
55                "ak.wwise.core.audioSourcePeaks.getMinMaxPeaksInTrimmedRegion";
56            pub const BLEND_CONTAINER_ADD_ASSIGNMENT: &str =
57                "ak.wwise.core.blendContainer.addAssignment";
58            pub const BLEND_CONTAINER_ADD_TRACK: &str = "ak.wwise.core.blendContainer.addTrack";
59            pub const BLEND_CONTAINER_GET_ASSIGNMENTS: &str =
60                "ak.wwise.core.blendContainer.getAssignments";
61            pub const BLEND_CONTAINER_REMOVE_ASSIGNMENT: &str =
62                "ak.wwise.core.blendContainer.removeAssignment";
63            pub const EXECUTE_LUA_SCRIPT: &str = "ak.wwise.core.executeLuaScript";
64            pub const GAME_PARAMETER_SET_RANGE: &str = "ak.wwise.core.gameParameter.setRange";
65            pub const GET_INFO: &str = "ak.wwise.core.getInfo";
66            pub const GET_PROJECT_INFO: &str = "ak.wwise.core.getProjectInfo";
67            pub const LOG_ADD_ITEM: &str = "ak.wwise.core.log.addItem";
68            pub const LOG_CLEAR: &str = "ak.wwise.core.log.clear";
69            pub const LOG_GET: &str = "ak.wwise.core.log.get";
70            pub const OBJECT_COPY: &str = "ak.wwise.core.object.copy";
71            pub const OBJECT_CREATE: &str = "ak.wwise.core.object.create";
72            pub const OBJECT_DELETE: &str = "ak.wwise.core.object.delete";
73            pub const OBJECT_DIFF: &str = "ak.wwise.core.object.diff";
74            pub const OBJECT_GET: &str = "ak.wwise.core.object.get";
75            pub const OBJECT_GET_ATTENUATION_CURVE: &str =
76                "ak.wwise.core.object.getAttenuationCurve";
77            pub const OBJECT_GET_PROPERTY_AND_REFERENCE_NAMES: &str =
78                "ak.wwise.core.object.getPropertyAndReferenceNames";
79            pub const OBJECT_GET_PROPERTY_INFO: &str = "ak.wwise.core.object.getPropertyInfo";
80            pub const OBJECT_GET_TYPES: &str = "ak.wwise.core.object.getTypes";
81            pub const OBJECT_IS_LINKED: &str = "ak.wwise.core.object.isLinked";
82            pub const OBJECT_IS_PROPERTY_ENABLED: &str =
83                "ak.wwise.core.object.isPropertyEnabled";
84            pub const OBJECT_MOVE: &str = "ak.wwise.core.object.move";
85            pub const OBJECT_PASTE_PROPERTIES: &str = "ak.wwise.core.object.pasteProperties";
86            pub const OBJECT_SET: &str = "ak.wwise.core.object.set";
87            pub const OBJECT_SET_ATTENUATION_CURVE: &str =
88                "ak.wwise.core.object.setAttenuationCurve";
89            pub const OBJECT_SET_LINKED: &str = "ak.wwise.core.object.setLinked";
90            pub const OBJECT_SET_NAME: &str = "ak.wwise.core.object.setName";
91            pub const OBJECT_SET_NOTES: &str = "ak.wwise.core.object.setNotes";
92            pub const OBJECT_SET_PROPERTY: &str = "ak.wwise.core.object.setProperty";
93            pub const OBJECT_SET_RANDOMIZER: &str = "ak.wwise.core.object.setRandomizer";
94            pub const OBJECT_SET_REFERENCE: &str = "ak.wwise.core.object.setReference";
95            pub const OBJECT_SET_STATE_GROUPS: &str = "ak.wwise.core.object.setStateGroups";
96            pub const OBJECT_SET_STATE_PROPERTIES: &str =
97                "ak.wwise.core.object.setStateProperties";
98            pub const PING: &str = "ak.wwise.core.ping";
99            pub const PROFILER_ENABLE_PROFILER_DATA: &str =
100                "ak.wwise.core.profiler.enableProfilerData";
101            pub const PROFILER_GET_AUDIO_OBJECTS: &str =
102                "ak.wwise.core.profiler.getAudioObjects";
103            pub const PROFILER_GET_BUSSES: &str = "ak.wwise.core.profiler.getBusses";
104            pub const PROFILER_GET_CPU_USAGE: &str = "ak.wwise.core.profiler.getCpuUsage";
105            pub const PROFILER_GET_CURSOR_TIME: &str = "ak.wwise.core.profiler.getCursorTime";
106            pub const PROFILER_GET_GAME_OBJECTS: &str =
107                "ak.wwise.core.profiler.getGameObjects";
108            pub const PROFILER_GET_LOADED_MEDIA: &str =
109                "ak.wwise.core.profiler.getLoadedMedia";
110            pub const PROFILER_GET_METERS: &str = "ak.wwise.core.profiler.getMeters";
111            pub const PROFILER_GET_PERFORMANCE_MONITOR: &str =
112                "ak.wwise.core.profiler.getPerformanceMonitor";
113            pub const PROFILER_GET_RTPCS: &str = "ak.wwise.core.profiler.getRTPCs";
114            pub const PROFILER_GET_STREAMED_MEDIA: &str =
115                "ak.wwise.core.profiler.getStreamedMedia";
116            pub const PROFILER_GET_VOICE_CONTRIBUTIONS: &str =
117                "ak.wwise.core.profiler.getVoiceContributions";
118            pub const PROFILER_GET_VOICES: &str = "ak.wwise.core.profiler.getVoices";
119            pub const PROFILER_REGISTER_METER: &str = "ak.wwise.core.profiler.registerMeter";
120            pub const PROFILER_SAVE_CAPTURE: &str = "ak.wwise.core.profiler.saveCapture";
121            pub const PROFILER_START_CAPTURE: &str = "ak.wwise.core.profiler.startCapture";
122            pub const PROFILER_STOP_CAPTURE: &str = "ak.wwise.core.profiler.stopCapture";
123            pub const PROFILER_UNREGISTER_METER: &str =
124                "ak.wwise.core.profiler.unregisterMeter";
125            pub const PROJECT_SAVE: &str = "ak.wwise.core.project.save";
126            pub const REMOTE_CONNECT: &str = "ak.wwise.core.remote.connect";
127            pub const REMOTE_DISCONNECT: &str = "ak.wwise.core.remote.disconnect";
128            pub const REMOTE_GET_AVAILABLE_CONSOLES: &str =
129                "ak.wwise.core.remote.getAvailableConsoles";
130            pub const REMOTE_GET_CONNECTION_STATUS: &str =
131                "ak.wwise.core.remote.getConnectionStatus";
132            pub const SOUND_SET_ACTIVE_SOURCE: &str = "ak.wwise.core.sound.setActiveSource";
133            pub const SOUNDBANK_CONVERT_EXTERNAL_SOURCES: &str =
134                "ak.wwise.core.soundbank.convertExternalSources";
135            pub const SOUNDBANK_GENERATE: &str = "ak.wwise.core.soundbank.generate";
136            pub const SOUNDBANK_GET_INCLUSIONS: &str = "ak.wwise.core.soundbank.getInclusions";
137            pub const SOUNDBANK_PROCESS_DEFINITION_FILES: &str =
138                "ak.wwise.core.soundbank.processDefinitionFiles";
139            pub const SOUNDBANK_SET_INCLUSIONS: &str = "ak.wwise.core.soundbank.setInclusions";
140            pub const SOURCE_CONTROL_ADD: &str = "ak.wwise.core.sourceControl.add";
141            pub const SOURCE_CONTROL_CHECK_OUT: &str = "ak.wwise.core.sourceControl.checkOut";
142            pub const SOURCE_CONTROL_COMMIT: &str = "ak.wwise.core.sourceControl.commit";
143            pub const SOURCE_CONTROL_DELETE: &str = "ak.wwise.core.sourceControl.delete";
144            pub const SOURCE_CONTROL_GET_SOURCE_FILES: &str =
145                "ak.wwise.core.sourceControl.getSourceFiles";
146            pub const SOURCE_CONTROL_GET_STATUS: &str = "ak.wwise.core.sourceControl.getStatus";
147            pub const SOURCE_CONTROL_MOVE: &str = "ak.wwise.core.sourceControl.move";
148            pub const SOURCE_CONTROL_REVERT: &str = "ak.wwise.core.sourceControl.revert";
149            pub const SOURCE_CONTROL_SET_PROVIDER: &str =
150                "ak.wwise.core.sourceControl.setProvider";
151            pub const SWITCH_CONTAINER_ADD_ASSIGNMENT: &str =
152                "ak.wwise.core.switchContainer.addAssignment";
153            pub const SWITCH_CONTAINER_GET_ASSIGNMENTS: &str =
154                "ak.wwise.core.switchContainer.getAssignments";
155            pub const SWITCH_CONTAINER_REMOVE_ASSIGNMENT: &str =
156                "ak.wwise.core.switchContainer.removeAssignment";
157            pub const TRANSPORT_CREATE: &str = "ak.wwise.core.transport.create";
158            pub const TRANSPORT_DESTROY: &str = "ak.wwise.core.transport.destroy";
159            pub const TRANSPORT_EXECUTE_ACTION: &str =
160                "ak.wwise.core.transport.executeAction";
161            pub const TRANSPORT_GET_LIST: &str = "ak.wwise.core.transport.getList";
162            pub const TRANSPORT_GET_STATE: &str = "ak.wwise.core.transport.getState";
163            pub const TRANSPORT_PREPARE: &str = "ak.wwise.core.transport.prepare";
164            pub const TRANSPORT_USE_ORIGINALS: &str = "ak.wwise.core.transport.useOriginals";
165            pub const UNDO_BEGIN_GROUP: &str = "ak.wwise.core.undo.beginGroup";
166            pub const UNDO_CANCEL_GROUP: &str = "ak.wwise.core.undo.cancelGroup";
167            pub const UNDO_END_GROUP: &str = "ak.wwise.core.undo.endGroup";
168            pub const UNDO_REDO: &str = "ak.wwise.core.undo.redo";
169            pub const UNDO_UNDO: &str = "ak.wwise.core.undo.undo";
170
171            // --- Topics (for subscribe) ---
172            pub const AUDIO_IMPORTED: &str = "ak.wwise.core.audio.imported";
173            pub const LOG_ITEM_ADDED: &str = "ak.wwise.core.log.itemAdded";
174            pub const OBJECT_ATTENUATION_CURVE_CHANGED: &str =
175                "ak.wwise.core.object.attenuationCurveChanged";
176            pub const OBJECT_ATTENUATION_CURVE_LINK_CHANGED: &str =
177                "ak.wwise.core.object.attenuationCurveLinkChanged";
178            pub const OBJECT_CHILD_ADDED: &str = "ak.wwise.core.object.childAdded";
179            pub const OBJECT_CHILD_REMOVED: &str = "ak.wwise.core.object.childRemoved";
180            pub const OBJECT_CREATED: &str = "ak.wwise.core.object.created";
181            pub const OBJECT_CURVE_CHANGED: &str = "ak.wwise.core.object.curveChanged";
182            pub const OBJECT_NAME_CHANGED: &str = "ak.wwise.core.object.nameChanged";
183            pub const OBJECT_NOTES_CHANGED: &str = "ak.wwise.core.object.notesChanged";
184            pub const OBJECT_POST_DELETED: &str = "ak.wwise.core.object.postDeleted";
185            pub const OBJECT_PRE_DELETED: &str = "ak.wwise.core.object.preDeleted";
186            pub const OBJECT_PROPERTY_CHANGED: &str = "ak.wwise.core.object.propertyChanged";
187            pub const OBJECT_REFERENCE_CHANGED: &str = "ak.wwise.core.object.referenceChanged";
188            pub const PROFILER_CAPTURE_LOG_ITEM_ADDED: &str =
189                "ak.wwise.core.profiler.captureLog.itemAdded";
190            pub const PROFILER_GAME_OBJECT_REGISTERED: &str =
191                "ak.wwise.core.profiler.gameObjectRegistered";
192            pub const PROFILER_GAME_OBJECT_RESET: &str = "ak.wwise.core.profiler.gameObjectReset";
193            pub const PROFILER_GAME_OBJECT_UNREGISTERED: &str =
194                "ak.wwise.core.profiler.gameObjectUnregistered";
195            pub const PROFILER_STATE_CHANGED: &str = "ak.wwise.core.profiler.stateChanged";
196            pub const PROFILER_SWITCH_CHANGED: &str = "ak.wwise.core.profiler.switchChanged";
197            pub const PROJECT_LOADED: &str = "ak.wwise.core.project.loaded";
198            pub const PROJECT_POST_CLOSED: &str = "ak.wwise.core.project.postClosed";
199            pub const PROJECT_PRE_CLOSED: &str = "ak.wwise.core.project.preClosed";
200            pub const PROJECT_SAVED: &str = "ak.wwise.core.project.saved";
201            pub const SOUNDBANK_GENERATED: &str = "ak.wwise.core.soundbank.generated";
202            pub const SOUNDBANK_GENERATION_DONE: &str = "ak.wwise.core.soundbank.generationDone";
203            pub const SWITCH_CONTAINER_ASSIGNMENT_ADDED: &str =
204                "ak.wwise.core.switchContainer.assignmentAdded";
205            pub const SWITCH_CONTAINER_ASSIGNMENT_REMOVED: &str =
206                "ak.wwise.core.switchContainer.assignmentRemoved";
207            pub const TRANSPORT_STATE_CHANGED: &str = "ak.wwise.core.transport.stateChanged";
208        }
209
210        /// ak.wwise.debug.*
211        pub mod debug {
212            pub const ENABLE_ASSERTS: &str = "ak.wwise.debug.enableAsserts";
213            pub const ENABLE_AUTOMATION_MODE: &str = "ak.wwise.debug.enableAutomationMode";
214            pub const GENERATE_TONE_WAV: &str = "ak.wwise.debug.generateToneWAV";
215            pub const GET_WAL_TREE: &str = "ak.wwise.debug.getWalTree";
216            pub const RESTART_WAAPI_SERVERS: &str = "ak.wwise.debug.restartWaapiServers";
217            pub const TEST_ASSERT: &str = "ak.wwise.debug.testAssert";
218            pub const TEST_CRASH: &str = "ak.wwise.debug.testCrash";
219            pub const VALIDATE_CALL: &str = "ak.wwise.debug.validateCall";
220
221            // --- Topics (for subscribe) ---
222            pub const ASSERT_FAILED: &str = "ak.wwise.debug.assertFailed";
223        }
224
225        /// ak.wwise.ui.*
226        pub mod ui {
227            pub const BRING_TO_FOREGROUND: &str = "ak.wwise.ui.bringToForeground";
228            pub const CAPTURE_SCREEN: &str = "ak.wwise.ui.captureScreen";
229            pub const CLI_EXECUTE_LUA_SCRIPT: &str = "ak.wwise.ui.cli.executeLuaScript";
230            pub const CLI_LAUNCH: &str = "ak.wwise.ui.cli.launch";
231            pub const COMMANDS_EXECUTE: &str = "ak.wwise.ui.commands.execute";
232            pub const COMMANDS_GET_COMMANDS: &str = "ak.wwise.ui.commands.getCommands";
233            pub const COMMANDS_REGISTER: &str = "ak.wwise.ui.commands.register";
234            pub const COMMANDS_UNREGISTER: &str = "ak.wwise.ui.commands.unregister";
235            pub const GET_SELECTED_OBJECTS: &str = "ak.wwise.ui.getSelectedObjects";
236            pub const LAYOUT_DOCK_VIEW: &str = "ak.wwise.ui.layout.dockView";
237            pub const LAYOUT_GET_CURRENT_LAYOUT_NAME: &str =
238                "ak.wwise.ui.layout.getCurrentLayoutName";
239            pub const LAYOUT_GET_ELEMENT_RECTANGLE: &str =
240                "ak.wwise.ui.layout.getElementRectangle";
241            pub const LAYOUT_GET_LAYOUT: &str = "ak.wwise.ui.layout.getLayout";
242            pub const LAYOUT_GET_LAYOUT_NAMES: &str = "ak.wwise.ui.layout.getLayoutNames";
243            pub const LAYOUT_GET_OR_CREATE_VIEW: &str = "ak.wwise.ui.layout.getOrCreateView";
244            pub const LAYOUT_GET_VIEW_HANDLE: &str = "ak.wwise.ui.layout.getViewHandle";
245            pub const LAYOUT_GET_VIEW_INSTANCES: &str = "ak.wwise.ui.layout.getViewInstances";
246            pub const LAYOUT_GET_VIEW_TYPES: &str = "ak.wwise.ui.layout.getViewTypes";
247            pub const LAYOUT_MOVE_SPLITTER: &str = "ak.wwise.ui.layout.moveSplitter";
248            pub const LAYOUT_REMOVE_LAYOUT: &str = "ak.wwise.ui.layout.removeLayout";
249            pub const LAYOUT_SET_LAYOUT: &str = "ak.wwise.ui.layout.setLayout";
250            pub const LAYOUT_SWITCH_LAYOUT: &str = "ak.wwise.ui.layout.switchLayout";
251            pub const LAYOUT_UNDOCK_VIEW: &str = "ak.wwise.ui.layout.undockView";
252            pub const MODEL_CREATE_HANDLE: &str = "ak.wwise.ui.model.createHandle";
253            pub const MODEL_DESTROY_HANDLE: &str = "ak.wwise.ui.model.destroyHandle";
254            pub const MODEL_GET_STATE: &str = "ak.wwise.ui.model.getState";
255            pub const MODEL_REGISTER_WAFM: &str = "ak.wwise.ui.model.registerWafm";
256            pub const MODEL_SET_STATE: &str = "ak.wwise.ui.model.setState";
257            pub const PROJECT_CLOSE: &str = "ak.wwise.ui.project.close";
258            pub const PROJECT_CREATE: &str = "ak.wwise.ui.project.create";
259            pub const PROJECT_OPEN: &str = "ak.wwise.ui.project.open";
260            pub const SIGNAL_EMIT: &str = "ak.wwise.ui.signal.emit";
261            pub const WINDOW_CLOSE: &str = "ak.wwise.ui.window.close";
262            pub const WINDOW_CREATE: &str = "ak.wwise.ui.window.create";
263            pub const WINDOW_PRESENT: &str = "ak.wwise.ui.window.present";
264
265            // --- Topics (for subscribe) ---
266            pub const COMMANDS_EXECUTED: &str = "ak.wwise.ui.commands.executed";
267            pub const SELECTION_CHANGED: &str = "ak.wwise.ui.selectionChanged";
268            pub const SIGNAL_CLICK: &str = "ak.wwise.ui.signal.click";
269            pub const SIGNAL_TOGGLE: &str = "ak.wwise.ui.signal.toggle";
270        }
271
272        /// ak.wwise.waapi.*
273        pub mod waapi {
274            pub const GET_FUNCTIONS: &str = "ak.wwise.waapi.getFunctions";
275            pub const GET_SCHEMA: &str = "ak.wwise.waapi.getSchema";
276            pub const GET_TOPICS: &str = "ak.wwise.waapi.getTopics";
277        }
278    }
279}