[package]
title = "Kit Audio Recorder Window"
category = "Audio"
version = "1.0.1"
description = "A simple audio recorder window"
detailedDescription = """This adds a window for recording audio to file from an audio
capture device.
"""
preview_image = "data/preview.png"
authors = ["NVIDIA"]
keywords = ["audio", "capture", "recording"]

[dependencies]
"omni.kit.audiodeviceenum" = {}
"omni.audiorecorder" = {}
"omni.ui" = {}
"omni.kit.window.content_browser" = { optional=true }
"omni.kit.window.filepicker" = {}
"omni.kit.pip_archive" = {}
"omni.usd" = {}
"omni.kit.menu.utils" = {}

[python.pipapi]
requirements = ["numpy"]

[[python.module]]
name = "omni.kit.window.audiorecorder"

[[test]]
args = [
    "--/renderer/enabled=pxr",
    "--/renderer/active=pxr",
    "--/renderer/multiGpu/enabled=false",
    "--/renderer/multiGpu/autoEnable=false", # Disable mGPU with PXR due to OM-51026, OM-53611
    "--/renderer/multiGpu/maxGpuCount=1",
    "--/app/asyncRendering=false",
    "--/app/window/dpiScaleOverride=1.0",
    "--/app/window/scaleToMonitor=false",
    "--no-window",

    # Use the null device backend.
    # We need this to ensure the captured data is consistent.
    # We could use the capture test patterns mode, but there's no way to
    # synchronize the image capture with the audio capture right now, so we'll
    # have to just capture silence.
    "--/audio/deviceBackend=null",

    # needed for the UI test stuff
    "--/app/menu/legacy_mode=false",
]


dependencies = [
    "omni.hydra.pxr",
    "omni.kit.mainwindow",
    "omni.kit.ui_test",
    "carb.audio",
]

stdoutFailPatterns.exclude = [
    "*" # I don't want these but OmniUiTest forces me to use them
]
