---
title: "AudioOutDeviceMap2"
description: "API documentation for AudioOutDeviceMap2"
url: https://developer.disguise.one/python-api/docs/audiooutdevicemap2/
---

# AudioOutDeviceMap2

See also: [Audio Guide](/plugins/guides/audio)

Base class (inherits properties and methods): _[Resource](/python-api/docs/resource#resource)_

## Properties

#### **hardware** : _List\[[AudioHardwareIdentifier](/python-api/docs/audiohardwareidentifier#audiohardwareidentifier)\]_

List of all available (plus old, if still mapped) hardware on this machine

#### **mappings** : _List\[[Mapping](/python-api/docs/mapping#mapping)\]_

List of active LogicalDevice -> (hardwareId + channelMap) mappings for this machine

## Methods

#### **audioDelayFor**(self, device: _[LogicalDevice](/python-api/docs/logicaldevice#logicaldevice)_) -> _float_

#### **changeSampleRate**(self, hardwareId: _str_, sampleRate: _int_)

#### **channelMapFor**(self, device: _[LogicalDevice](/python-api/docs/logicaldevice#logicaldevice)_) -> _List\[int\]_

#### **findHardware**(self, device: _[LogicalDevice](/python-api/docs/logicaldevice#logicaldevice)_) -> _[AudioHardwareIdentifier](/python-api/docs/audiohardwareidentifier#audiohardwareidentifier)_

#### **getHardwareDevices**(self) -> _List\[[AudioHardwareIdentifier](/python-api/docs/audiohardwareidentifier#audiohardwareidentifier)\]_

#### **setMapping**(self, device: _[LogicalDevice](/python-api/docs/logicaldevice#logicaldevice)_, hardwareId: _str_, channelMap: _List\[int\]_, audioDelay: _float_)
