HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
tt::audio_device_win32 Class Reference

#include <ttauri/audio/audio_device_win32.hpp>

Inheritance diagram for tt::audio_device_win32:
tt::audio_device

Public Member Functions

 audio_device_win32 (IMMDevice *device)
 
std::string id () const noexcept override
 The nonephemeral unique id that for an audio device on the system.
 
std::string name () const noexcept override
 Get a user friendly name of the audio device.
 
tt::label label () const noexcept override
 Get a user friendly label of the audio device.
 
audio_device_state state () const noexcept override
 Get the current state of the audio device.
 
audio_direction direction () const noexcept override
 
size_t full_num_channels () const noexcept override
 
speaker_mapping full_channel_mapping () const noexcept override
 Get a bitmap of channel mappings for this audio device.
 

Static Public Member Functions

static std::string get_id_from_device (IMMDevice *device) noexcept
 

Detailed Description

A class representing an audio device on the system.

Member Function Documentation

◆ direction()

audio_direction tt::audio_device_win32::direction ( ) const
overridevirtualnoexcept

Implements tt::audio_device.

◆ full_channel_mapping()

speaker_mapping tt::audio_device_win32::full_channel_mapping ( ) const
overridevirtualnoexcept

Get a bitmap of channel mappings for this audio device.

The value returned is independent on the how many channels are actually configured.

Returns
Mapping of audio channels to speaker locations.

Implements tt::audio_device.

◆ full_num_channels()

size_t tt::audio_device_win32::full_num_channels ( ) const
overridevirtualnoexcept

Implements tt::audio_device.

◆ id()

std::string tt::audio_device_win32::id ( ) const
overridevirtualnoexcept

The nonephemeral unique id that for an audio device on the system.

Implements tt::audio_device.

◆ label()

tt::label tt::audio_device_win32::label ( ) const
overridevirtualnoexcept

Get a user friendly label of the audio device.

This is a combination of the name of the device and the name of the end-point, plus an icon for the driver architecture.

Implements tt::audio_device.

◆ name()

std::string tt::audio_device_win32::name ( ) const
overridevirtualnoexcept

Get a user friendly name of the audio device.

This is a combination of the name of the device and the name of the end-point.

Implements tt::audio_device.

◆ state()

audio_device_state tt::audio_device_win32::state ( ) const
overridevirtualnoexcept

Get the current state of the audio device.

Implements tt::audio_device.


The documentation for this class was generated from the following file: