AudioExtension

class omni.kit.audiodeviceenum.extension.AudioExtension

Bases: IExt

Extension startup and shutdown event handler. This handles installing and removing the audio preferences page from the app’s main preferences window when this extension loads and unloads.

Methods

__init__(self)

on_shutdown()

Extension shutdown callback function.

on_startup(ext_id)

Extension startup callback function.

__init__(self: omni.ext._extensions.IExt) None
on_shutdown()

Extension shutdown callback function. This is called automatically when the Python side of this extension unloads. This will always attempt to remove the audio preferences page. This operation will be ignored if the page was not originally installed.

on_startup(ext_id)

Extension startup callback function. This is called automatically when the Python side of this extension loads. If enabled, the audio preferences page will be installed when this extension is later enabled (usually happens automatically after extension load). The audio preferences page will be removed when this extension is unloaded or disabled.

Parameters

ext_id – The ID of this extension. This will be a string containing the extension’s name and version.