|
500 | 500 | ma_share_mode_exclusive |
501 | 501 | } ma_share_mode; |
502 | 502 |
|
| 503 | +typedef enum |
| 504 | +{ |
| 505 | + ma_wasapi_usage_default = 0, |
| 506 | + ma_wasapi_usage_games, |
| 507 | + ma_wasapi_usage_pro_audio, |
| 508 | +} ma_wasapi_usage; |
| 509 | +
|
503 | 510 | typedef enum |
504 | 511 | { |
505 | 512 | ma_seek_origin_start, |
|
615 | 622 | ma_uint32 channels; |
616 | 623 | ma_channel* pChannelMap; |
617 | 624 | ma_channel_mix_mode channelMixMode; |
| 625 | + ma_bool32 calculateLFEFromSpatialChannels; /* When an output LFE channel is present, but no input LFE, set to true to set the output LFE to the average of all spatial channels (LR, FR, etc.). Ignored when an input LFE is present. */ |
618 | 626 | ma_share_mode shareMode; |
619 | 627 | } playback; |
620 | 628 | struct |
|
624 | 632 | ma_uint32 channels; |
625 | 633 | ma_channel* pChannelMap; |
626 | 634 | ma_channel_mix_mode channelMixMode; |
| 635 | + ma_bool32 calculateLFEFromSpatialChannels; /* When an output LFE channel is present, but no input LFE, set to true to set the output LFE to the average of all spatial channels (LR, FR, etc.). Ignored when an input LFE is present. */ |
627 | 636 | ma_share_mode shareMode; |
628 | 637 | } capture; |
629 | 638 |
|
630 | 639 | struct |
631 | 640 | { |
632 | | - ma_bool8 noAutoConvertSRC; /* When set to true, disables the use of AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM. */ |
633 | | - ma_bool8 noDefaultQualitySRC; /* When set to true, disables the use of AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY. */ |
634 | | - ma_bool8 noAutoStreamRouting; /* Disables automatic stream routing. */ |
635 | | - ma_bool8 noHardwareOffloading; /* Disables WASAPI's hardware offloading feature. */ |
| 641 | + ma_wasapi_usage usage; /* When configured, uses Avrt APIs to set the thread characteristics. */ |
| 642 | + ma_bool8 noAutoConvertSRC; /* When set to true, disables the use of AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM. */ |
| 643 | + ma_bool8 noDefaultQualitySRC; /* When set to true, disables the use of AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY. */ |
| 644 | + ma_bool8 noAutoStreamRouting; /* Disables automatic stream routing. */ |
| 645 | + ma_bool8 noHardwareOffloading; /* Disables WASAPI's hardware offloading feature. */ |
| 646 | + ma_uint32 loopbackProcessID; /* The process ID to include or exclude for loopback mode. Set to 0 to capture audio from all processes. Ignored when an explicit device ID is specified. */ |
| 647 | + ma_bool8 loopbackProcessExclude; /* When set to true, excludes the process specified by loopbackProcessID. By default, the process will be included. */ |
636 | 648 | } wasapi; |
637 | 649 | struct |
638 | 650 | { |
|
0 commit comments