package vendor:windows/wasapi

⌘K
Ctrl+K
or
/

    Types

    AUDCLNT_FLAG ¶

    AUDCLNT_FLAG :: enum u32 {
    	STREAM_CROSSPROCESS             = 0x00010000, 
    	STREAM_LOOPBACK                 = 0x00020000, 
    	STREAM_EVENTCALLBACK            = 0x00040000, 
    	STREAM_NOPERSIST                = 0x00080000, 
    	STREAM_RATEADJUST               = 0x00100000, 
    	STREAM_SRC_DEFAULT_QUALITY      = 0x08000000, 
    	STREAM_AUTOCONVERTPCM           = 0x80000000, 
    	SESSION_EXPIREWHENUNOWNED       = 0x10000000, 
    	SESSION_DISPLAY_HIDE            = 0x20000000, 
    	SESSION_DISPLAY_HIDEWHENEXPIRED = 0x40000000, 
    }
     

    Description: AudioClient stream flags

    Can be a combination of AUDCLNT_STREAMFLAGS and AUDCLNT_SYSFXFLAGS:

    AUDCLNT_STREAMFLAGS (this group of flags uses the high word, w/exception of high-bit which is reserved, 0x7FFF0000):

    AUDCLNT_STREAMFLAGS_CROSSPROCESS -             Audio policy control for this stream will be shared with
                                                   with other process sessions that use the same audio session
                                                   GUID.
    
    AUDCLNT_STREAMFLAGS_LOOPBACK -                 Initializes a renderer endpoint for a loopback audio application.
                                                   In this mode, a capture stream will be opened on the specified
                                                   renderer endpoint. Shared mode and a renderer endpoint is required.
                                                   Otherwise the IAudioClient::Initialize call will fail. If the
                                                   initialize is successful, a capture stream will be available
                                                   from the IAudioClient object.
    
    AUDCLNT_STREAMFLAGS_EVENTCALLBACK -            An exclusive mode client will supply an event handle that will be
                                                   signaled when an IRP completes (or a waveRT buffer completes) telling
                                                   it to fill the next buffer
    
    AUDCLNT_STREAMFLAGS_NOPERSIST -                Session state will not be persisted
    
    AUDCLNT_STREAMFLAGS_RATEADJUST -               The sample rate of the stream is adjusted to a rate specified by an application.
    
    AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY -      When used with AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM, a sample rate
                                                   converter with better quality than the default conversion but with a
                                                   higher performance cost is used. This should be used if the audio is
                                                   ultimately intended to be heard by humans as opposed to other
                                                   scenarios such as pumping silence or populating a meter.
    
    AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM -           A channel matrixer and a sample rate converter are inserted as necessary
                                                   to convert between the uncompressed format supplied to
                                                   IAudioClient::Initialize and the audio engine mix format.
    
    AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED -       Session expires when there are no streams and no owning
                                                   session controls.
    
    AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE -            Don't show volume control in the Volume Mixer.
    
    AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED - Don't show volume control in the Volume Mixer after the
                                                   session expires.
    

    AUDCLNT_SYSFXFLAGS (these flags use low word 0x0000FFFF):

    none defined currently
    

    AUDCLNT_SHAREMODE ¶

    AUDCLNT_SHAREMODE :: enum u32 {
    	SHARED, 
    	EXCLUSIVE, 
    }
     

    Description: AudioClient share mode

    AUDCLNT_SHAREMODE_SHARED -    The device will be opened in shared mode and use the
                                  WAS format.
    AUDCLNT_SHAREMODE_EXCLUSIVE - The device will be opened in exclusive mode and use the
                                  application specified format.
    

    AUDCLNT_STREAMOPTION ¶

    AUDCLNT_STREAMOPTION :: enum u32 {
    	RAW, 
    	MATCH_FORMAT, 
    	AMBISONICS, 
    	POST_VOLUME_LOOPBACK, 
    }

    AUDIO_STREAM_CATEGORY ¶

    AUDIO_STREAM_CATEGORY :: enum u32 {
    	Other                  = 0, 
    	ForegroundOnlyMedia    = 1, 
    	BackgroundCapableMedia = 2,  // #if NTDDI_VERSION < NTDDI_WINTHRESHOLD
    	Communications         = 3, 
    	Alerts                 = 4, 
    	SoundEffects           = 5, 
    	GameEffects            = 6, 
    	GameMedia              = 7, 
    	GameChat               = 8, 
    	Speech                 = 9, 
    	Movie                  = 10, 
    	Media                  = 11, 
    	FarFieldSpeech         = 12, // #if NTDDI_VERSION >= NTDDI_WIN10_FE
    	UniformSpeech          = 13, // #if NTDDI_VERSION >= NTDDI_WIN10_FE
    	VoiceTyping            = 14, // #if NTDDI_VERSION >= NTDDI_WIN10_FE
    }
     

    Description: Audio stream categories

    ForegroundOnlyMedia - (deprecated for Win10) Music, Streaming audio BackgroundCapableMedia - (deprecated for Win10) Video with audio Communications - VOIP, chat, phone call Alerts - Alarm, Ring tones SoundEffects - Sound effects, clicks, dings GameEffects - Game sound effects GameMedia - Background audio for games GameChat - In game player chat Speech - Speech recognition Media - Music, Streaming audio Movie - Video with audio FarFieldSpeech - Capture of far field speech UniformSpeech - Uniform, device agnostic speech processing VoiceTyping - Dictation, typing by voice Other - All other streams (default)

    AudioClientProperties ¶

    AudioClientProperties :: struct {
    	cbSize:     u32,
    	bIsOffload: sys_windows.BOOL,
    	eCategory:  AUDIO_STREAM_CATEGORY,
    	Options:    bit_set[AUDCLNT_STREAMOPTION],
    }

    EDataFlow ¶

    EDataFlow :: enum u32 {
    	Render, 
    	Capture, 
    	All, 
    }

    ERole ¶

    ERole :: enum u32 {
    	Console, 
    	Multimedia, 
    	Communications, 
    }

    IAudioClient ¶

    IAudioClient :: struct #raw_union {
    	#subtype iunknown:   sys_windows.IUnknown,
    	using iaudioclient_vtable: ^IAudioClient_VTable,
    }

    Fields Through using (15)

    From using iaudioclient_vtable: ^IAudioClient_VTable

    IAudioClient2 ¶

    IAudioClient2 :: struct #raw_union {
    	#subtype iunknown:    sys_windows.IUnknown,
    	using iaudioclient2_vtable: ^IAudioClient2_VTable,
    }

    Fields Through using (18)

    From using iaudioclient2_vtable: ^IAudioClient2_VTable

    IAudioClient2_VTable ¶

    IAudioClient2_VTable :: struct {
    	using iaudioclient_vtable: IAudioClient_VTable,
    	IsOffloadCapable:    proc "stdcall" (This: ^IAudioClient2, Category: AUDIO_STREAM_CATEGORY, pbOffloadCapable: ^sys_windows.BOOL) -> sys_windows.HRESULT,
    	SetClientProperties: proc "stdcall" (This: ^IAudioClient2, pProperties: ^AudioClientProperties) -> sys_windows.HRESULT,
    	GetBufferSizeLimits: proc "stdcall" (This: ^IAudioClient2, pFormat: ^WAVEFORMATEX, bEventDriven: sys_windows.BOOL, phnsMinBufferDuration: ^i64, phnsMaxBufferDuration: ^i64) -> sys_windows.HRESULT,
    }

    Fields Through using (15)

    From using iaudioclient_vtable: IAudioClient_VTable

    IAudioClient3 ¶

    IAudioClient3 :: struct #raw_union {
    	#subtype iunknown:    sys_windows.IUnknown,
    	using iaudioclient3_vtable: ^IAudioClient3_VTable,
    }

    Fields Through using (21)

    From using iaudioclient3_vtable: ^IAudioClient3_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable.iunknown_vtable
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32 // through iaudioclient2_vtable.iaudioclient_vtable.iunknown_vtable
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32 // through iaudioclient2_vtable.iaudioclient_vtable.iunknown_vtable
    • Initialize: proc "stdcall" (This: ^IAudioClient, ShareMode: AUDCLNT_SHAREMODE, StreamFlags: u32, hnsBufferDuration: i64, hnsPeriodicity: i64, pFormat: ^WAVEFORMATEX, AudioSessionGuid: ^sys_windows.GUID) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • GetBufferSize: proc "stdcall" (This: ^IAudioClient, pNumBufferFrames: ^u32) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • GetStreamLatency: proc "stdcall" (This: ^IAudioClient, phnsLatency: ^i64) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • GetCurrentPadding: proc "stdcall" (This: ^IAudioClient, pNumPaddingFrames: ^u32) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • IsFormatSupported: proc "stdcall" (This: ^IAudioClient, ShareMode: AUDCLNT_SHAREMODE, pFormat: ^WAVEFORMATEX, ppClosestMatch: ^^WAVEFORMATEX) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • GetMixFormat: proc "stdcall" (This: ^IAudioClient, ppDeviceFormat: ^^WAVEFORMATEX) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • GetDevicePeriod: proc "stdcall" (This: ^IAudioClient, phnsDefaultDevicePeriod: ^i64, phnsMinimumDevicePeriod: ^i64) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • Start: proc "stdcall" (This: ^IAudioClient) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • Stop: proc "stdcall" (This: ^IAudioClient) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • Reset: proc "stdcall" (This: ^IAudioClient) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • SetEventHandle: proc "stdcall" (This: ^IAudioClient, eventHandle: sys_windows.HANDLE) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • GetService: proc "stdcall" (This: ^IAudioClient, riid: ^sys_windows.GUID, ppv: ^rawptr) -> sys_windows.HRESULT // through iaudioclient2_vtable.iaudioclient_vtable
    • IsOffloadCapable: proc "stdcall" (This: ^IAudioClient2, Category: AUDIO_STREAM_CATEGORY, pbOffloadCapable: ^sys_windows.BOOL) -> sys_windows.HRESULT // through iaudioclient2_vtable
    • SetClientProperties: proc "stdcall" (This: ^IAudioClient2, pProperties: ^AudioClientProperties) -> sys_windows.HRESULT // through iaudioclient2_vtable
    • GetBufferSizeLimits: proc "stdcall" (This: ^IAudioClient2, pFormat: ^WAVEFORMATEX, bEventDriven: sys_windows.BOOL, phnsMinBufferDuration: ^i64, phnsMaxBufferDuration: ^i64) -> sys_windows.HRESULT // through iaudioclient2_vtable
    • GetSharedModeEnginePeriod: proc "stdcall" (This: ^IAudioClient3, pFormat: ^WAVEFORMATEX, pDefaultPeriodInFrames: ^u32, pFundamentalPeriodInFrames: ^u32, pMinPeriodInFrames: ^u32, pMaxPeriodInFrames: ^u32) -> sys_windows.HRESULT
    • GetCurrentSharedModeEnginePeriod: proc "stdcall" (This: ^IAudioClient3, ppFormat: ^^WAVEFORMATEX, pCurrentPeriodInFrames: ^u32) -> sys_windows.HRESULT
    • InitializeSharedAudioStream: proc "stdcall" (This: ^IAudioClient3, StreamFlags: u32, PeriodInFrames: u32, pFormat: ^WAVEFORMATEX, AudioSessionGuid: ^sys_windows.GUID) -> sys_windows.HRESULT

    IAudioClient3_VTable ¶

    IAudioClient3_VTable :: struct {
    	using iaudioclient2_vtable:       IAudioClient2_VTable,
    	GetSharedModeEnginePeriod:        proc "stdcall" (This: ^IAudioClient3, pFormat: ^WAVEFORMATEX, pDefaultPeriodInFrames: ^u32, pFundamentalPeriodInFrames: ^u32, pMinPeriodInFrames: ^u32, pMaxPeriodInFrames: ^u32) -> sys_windows.HRESULT,
    	GetCurrentSharedModeEnginePeriod: proc "stdcall" (This: ^IAudioClient3, ppFormat: ^^WAVEFORMATEX, pCurrentPeriodInFrames: ^u32) -> sys_windows.HRESULT,
    	InitializeSharedAudioStream:      proc "stdcall" (This: ^IAudioClient3, StreamFlags: u32, PeriodInFrames: u32, pFormat: ^WAVEFORMATEX, AudioSessionGuid: ^sys_windows.GUID) -> sys_windows.HRESULT,
    }

    Fields Through using (18)

    From using iaudioclient2_vtable: IAudioClient2_VTable

    IAudioClient_VTable ¶

    IAudioClient_VTable :: struct {
    	using iunknown_vtable: sys_windows.IUnknown_VTable,
    	Initialize:        proc "stdcall" (This: ^IAudioClient, ShareMode: AUDCLNT_SHAREMODE, StreamFlags: u32, hnsBufferDuration: i64, hnsPeriodicity: i64, pFormat: ^WAVEFORMATEX, AudioSessionGuid: ^sys_windows.GUID) -> sys_windows.HRESULT,
    	GetBufferSize:     proc "stdcall" (This: ^IAudioClient, pNumBufferFrames: ^u32) -> sys_windows.HRESULT,
    	GetStreamLatency:  proc "stdcall" (This: ^IAudioClient, phnsLatency: ^i64) -> sys_windows.HRESULT,
    	GetCurrentPadding: proc "stdcall" (This: ^IAudioClient, pNumPaddingFrames: ^u32) -> sys_windows.HRESULT,
    	IsFormatSupported: proc "stdcall" (This: ^IAudioClient, ShareMode: AUDCLNT_SHAREMODE, pFormat: ^WAVEFORMATEX, ppClosestMatch: ^^WAVEFORMATEX) -> sys_windows.HRESULT,
    	GetMixFormat:      proc "stdcall" (This: ^IAudioClient, ppDeviceFormat: ^^WAVEFORMATEX) -> sys_windows.HRESULT,
    	GetDevicePeriod:   proc "stdcall" (This: ^IAudioClient, phnsDefaultDevicePeriod: ^i64, phnsMinimumDevicePeriod: ^i64) -> sys_windows.HRESULT,
    	Start:             proc "stdcall" (This: ^IAudioClient) -> sys_windows.HRESULT,
    	Stop:              proc "stdcall" (This: ^IAudioClient) -> sys_windows.HRESULT,
    	Reset:             proc "stdcall" (This: ^IAudioClient) -> sys_windows.HRESULT,
    	SetEventHandle:    proc "stdcall" (This: ^IAudioClient, eventHandle: sys_windows.HANDLE) -> sys_windows.HRESULT,
    	GetService:        proc "stdcall" (This: ^IAudioClient, riid: ^sys_windows.GUID, ppv: ^rawptr) -> sys_windows.HRESULT,
    }

    Fields Through using (3)

    From using iunknown_vtable: sys_windows.IUnknown_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32

    IAudioRenderClient ¶

    IAudioRenderClient :: struct #raw_union {
    	#subtype iunknown:         sys_windows.IUnknown,
    	using iaudiorenderclient_vtable: ^IAudioRenderClient_VTable,
    }

    Fields Through using (5)

    From using iaudiorenderclient_vtable: ^IAudioRenderClient_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT // through iunknown_vtable
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32 // through iunknown_vtable
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32 // through iunknown_vtable
    • GetBuffer: proc "stdcall" (This: ^IAudioRenderClient, NumFramesRequested: u32, ppData: ^[^]u8) -> sys_windows.HRESULT
    • ReleaseBuffer: proc "stdcall" (This: ^IAudioRenderClient, NumFramesWritten: u32, dwFlags: u32) -> sys_windows.HRESULT

    IAudioRenderClient_VTable ¶

    IAudioRenderClient_VTable :: struct {
    	using iunknown_vtable: sys_windows.IUnknown_VTable,
    	GetBuffer:       proc "stdcall" (This: ^IAudioRenderClient, NumFramesRequested: u32, ppData: ^[^]u8) -> sys_windows.HRESULT,
    	ReleaseBuffer:   proc "stdcall" (This: ^IAudioRenderClient, NumFramesWritten: u32, dwFlags: u32) -> sys_windows.HRESULT,
    }

    Fields Through using (3)

    From using iunknown_vtable: sys_windows.IUnknown_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32

    IMMDevice ¶

    IMMDevice :: struct #raw_union {
    	#subtype iunknown: sys_windows.IUnknown,
    	using immdevice_vtable: ^IMMDevice_VTable,
    }

    Fields Through using (7)

    From using immdevice_vtable: ^IMMDevice_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT // through iunknown_vtable
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32 // through iunknown_vtable
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32 // through iunknown_vtable
    • Activate: proc "stdcall" (This: ^IMMDevice, iid: ^sys_windows.GUID, dwClsCtx: u32, pActivationParams: ^rawptr, ppInterface: [^]rawptr) -> sys_windows.HRESULT
    • OpenPropertyStore: proc "stdcall" (This: ^IMMDevice, stgmAccess: u32, ppProperties: [^]^sys_windows.IPropertyStore) -> sys_windows.HRESULT
    • GetId: proc "stdcall" (This: ^IMMDevice, ppstrId: ^^u16) -> sys_windows.HRESULT
    • GetState: proc "stdcall" (This: ^IMMDevice, pdwState: ^u32) -> sys_windows.HRESULT

    IMMDeviceCollection ¶

    IMMDeviceCollection :: struct #raw_union {
    	#subtype iunknown:          sys_windows.IUnknown,
    	using immdevicecollection_vtable: ^IMMDeviceCollection_VTable,
    }

    Fields Through using (5)

    From using immdevicecollection_vtable: ^IMMDeviceCollection_VTable

    IMMDeviceCollection_VTable ¶

    IMMDeviceCollection_VTable :: struct {
    	using iunknown_vtable: sys_windows.IUnknown_VTable,
    	GetCount:        proc "stdcall" (This: ^IMMDeviceCollection, pcDevices: ^u32) -> sys_windows.HRESULT,
    	Item:            proc "stdcall" (This: ^IMMDeviceCollection, nDevice: u32, ppDevice: ^^IMMDevice) -> sys_windows.HRESULT,
    }

    Fields Through using (3)

    From using iunknown_vtable: sys_windows.IUnknown_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32

    IMMDeviceEnumerator ¶

    IMMDeviceEnumerator :: struct #raw_union {
    	#subtype iunknown:          sys_windows.IUnknown,
    	using immdeviceenumerator_vtable: ^IMMDeviceEnumerator_VTable,
    }

    Fields Through using (8)

    From using immdeviceenumerator_vtable: ^IMMDeviceEnumerator_VTable

    IMMDeviceEnumerator_VTable ¶

    IMMDeviceEnumerator_VTable :: struct {
    	using iunknown_vtable:                  sys_windows.IUnknown_VTable,
    	EnumAudioEndpoints:                     proc "stdcall" (This: ^IMMDeviceEnumerator, dataFlow: EDataFlow, dwStateMask: u32, ppDevices: ^[^]IMMDeviceCollection) -> sys_windows.HRESULT,
    	GetDefaultAudioEndpoint:                proc "stdcall" (This: ^IMMDeviceEnumerator, dataFlow: EDataFlow, role: ERole, ppEndpoint: ^^IMMDevice) -> sys_windows.HRESULT,
    	GetDevice:                              proc "stdcall" (This: ^IMMDeviceEnumerator, pwstrId: cstring16, ppDevice: ^^IMMDevice) -> sys_windows.HRESULT,
    	RegisterEndpointNotificationCallback:   proc "stdcall" (This: ^IMMDeviceEnumerator, pClient: ^IMMNotificationClient) -> sys_windows.HRESULT,
    	UnregisterEndpointNotificationCallback: proc "stdcall" (This: ^IMMDeviceEnumerator, pClient: ^IMMNotificationClient) -> sys_windows.HRESULT,
    }

    Fields Through using (3)

    From using iunknown_vtable: sys_windows.IUnknown_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32

    IMMDevice_VTable ¶

    IMMDevice_VTable :: struct {
    	using iunknown_vtable: sys_windows.IUnknown_VTable,
    	Activate:          proc "stdcall" (This: ^IMMDevice, iid: ^sys_windows.GUID, dwClsCtx: u32, pActivationParams: ^rawptr, ppInterface: [^]rawptr) -> sys_windows.HRESULT,
    	OpenPropertyStore: proc "stdcall" (This: ^IMMDevice, stgmAccess: u32, ppProperties: [^]^sys_windows.IPropertyStore) -> sys_windows.HRESULT,
    	GetId:             proc "stdcall" (This: ^IMMDevice, ppstrId: ^^u16) -> sys_windows.HRESULT,
    	GetState:          proc "stdcall" (This: ^IMMDevice, pdwState: ^u32) -> sys_windows.HRESULT,
    }

    Fields Through using (3)

    From using iunknown_vtable: sys_windows.IUnknown_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32

    IMMNotificationClient ¶

    IMMNotificationClient :: struct #raw_union {
    	#subtype iunknown:            sys_windows.IUnknown,
    	using immnotificationclient_vtable: ^IMMNotificationClient_VTable,
    }

    Fields Through using (8)

    From using immnotificationclient_vtable: ^IMMNotificationClient_VTable

    IMMNotificationClient_VTable ¶

    IMMNotificationClient_VTable :: struct {
    	using iunknown_vtable:  sys_windows.IUnknown_VTable,
    	OnDeviceStateChanged:   proc "stdcall" (This: ^IMMNotificationClient, pwstrDeviceId: cstring16, dwNewState: u32) -> sys_windows.HRESULT,
    	OnDeviceAdded:          proc "stdcall" (This: ^IMMNotificationClient, pwstrDeviceId: cstring16) -> sys_windows.HRESULT,
    	OnDeviceRemoved:        proc "stdcall" (This: ^IMMNotificationClient, pwstrDeviceId: cstring16) -> sys_windows.HRESULT,
    	OnDefaultDeviceChanged: proc "stdcall" (This: ^IMMNotificationClient, flow: EDataFlow, role: ERole, pwstrDefaultDeviceId: cstring16) -> sys_windows.HRESULT,
    	OnPropertyValueChanged: proc "stdcall" (This: ^IMMNotificationClient, pwstrDeviceId: cstring16, key: sys_windows.PROPERTYKEY) -> sys_windows.HRESULT,
    }

    Fields Through using (3)

    From using iunknown_vtable: sys_windows.IUnknown_VTable
    • QueryInterface: proc "stdcall" (This: ^sys_windows.IUnknown, riid: ^sys_windows.GUID, ppvObject: ^rawptr) -> sys_windows.HRESULT
    • AddRef: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32
    • Release: proc "stdcall" (This: ^sys_windows.IUnknown) -> u32

    Result ¶

    Result :: enum u32 {
    	AUDCLNT_E_NOT_INITIALIZED                  = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x001, 
    	AUDCLNT_E_ALREADY_INITIALIZED              = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x002, 
    	AUDCLNT_E_WRONG_ENDPOINT_TYPE              = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x003, 
    	AUDCLNT_E_DEVICE_INVALIDATED               = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x004, 
    	AUDCLNT_E_NOT_STOPPED                      = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x005, 
    	AUDCLNT_E_BUFFER_TOO_LARGE                 = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x006, 
    	AUDCLNT_E_OUT_OF_ORDER                     = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x007, 
    	AUDCLNT_E_UNSUPPORTED_FORMAT               = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x008, 
    	AUDCLNT_E_INVALID_SIZE                     = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x009, 
    	AUDCLNT_E_DEVICE_IN_USE                    = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x00a, 
    	AUDCLNT_E_BUFFER_OPERATION_PENDING         = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x00b, 
    	AUDCLNT_E_THREAD_NOT_REGISTERED            = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x00c, 
    	AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED       = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x00e, 
    	AUDCLNT_E_ENDPOINT_CREATE_FAILED           = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x00f, 
    	AUDCLNT_E_SERVICE_NOT_RUNNING              = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x010, 
    	AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED         = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x011, 
    	AUDCLNT_E_EXCLUSIVE_MODE_ONLY              = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x012, 
    	AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL     = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x013, 
    	AUDCLNT_E_EVENTHANDLE_NOT_SET              = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x014, 
    	AUDCLNT_E_INCORRECT_BUFFER_SIZE            = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x015, 
    	AUDCLNT_E_BUFFER_SIZE_ERROR                = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x016, 
    	AUDCLNT_E_CPUUSAGE_EXCEEDED                = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x017, 
    	AUDCLNT_E_BUFFER_ERROR                     = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x018, 
    	AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED          = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x019, 
    	AUDCLNT_E_INVALID_DEVICE_PERIOD            = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x020, 
    	AUDCLNT_E_INVALID_STREAM_FLAG              = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x021, 
    	AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE     = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x022, 
    	AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES         = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x023, 
    	AUDCLNT_E_OFFLOAD_MODE_ONLY                = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x024, 
    	AUDCLNT_E_NONOFFLOAD_MODE_ONLY             = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x025, 
    	AUDCLNT_E_RESOURCES_INVALIDATED            = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x026, 
    	AUDCLNT_E_RAW_MODE_UNSUPPORTED             = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x027, 
    	AUDCLNT_E_ENGINE_PERIODICITY_LOCKED        = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x028, 
    	AUDCLNT_E_ENGINE_FORMAT_LOCKED             = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x029, 
    	AUDCLNT_E_HEADTRACKING_ENABLED             = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x030, 
    	AUDCLNT_E_HEADTRACKING_UNSUPPORTED         = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x040, 
    	AUDCLNT_E_EFFECT_NOT_AVAILABLE             = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x041, 
    	AUDCLNT_E_EFFECT_STATE_READ_ONLY           = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x042, 
    	AUDCLNT_E_POST_VOLUME_LOOPBACK_UNSUPPORTED = _SEVERITY_ERROR << 31 | _FACILITY_AUDCLNT << 16 | 0x043, 
    	AUDCLNT_S_BUFFER_EMPTY                     = _SEVERITY_SUCCESS << 31 | _FACILITY_AUDCLNT << 16 | 0x001, 
    	AUDCLNT_S_THREAD_ALREADY_REGISTERED        = _SEVERITY_SUCCESS << 31 | _FACILITY_AUDCLNT << 16 | 0x002, 
    	AUDCLNT_S_POSITION_STALLED                 = _SEVERITY_SUCCESS << 31 | _FACILITY_AUDCLNT << 16 | 0x003, 
    }
     

    Binary compatible with HRESULT

    SPEAKER ¶

    SPEAKER :: enum u32 {
    	FRONT_LEFT, 
    	FRONT_RIGHT, 
    	FRONT_CENTER, 
    	LOW_FREQUENCY, 
    	BACK_LEFT, 
    	BACK_RIGHT, 
    	FRONT_LEFT_OF_CENTER, 
    	FRONT_RIGHT_OF_CENTER, 
    	BACK_CENTER, 
    	SIDE_LEFT, 
    	SIDE_RIGHT, 
    	TOP_CENTER, 
    	TOP_FRONT_LEFT, 
    	TOP_FRONT_CENTER, 
    	TOP_FRONT_RIGHT, 
    	TOP_BACK_LEFT, 
    	TOP_BACK_CENTER, 
    	TOP_BACK_RIGHT, 
    }

    WAVEFORMATEX ¶

    WAVEFORMATEX :: struct #packed {
    	wFormatTag:      WAVE_FORMAT,
    	// format type
    	nChannels:       u16,
    	// number of channels (i.e. mono, stereo...)
    	nSamplesPerSec:  u32,
    	// sample rate
    	nAvgBytesPerSec: u32,
    	// for buffer estimation
    	nBlockAlign:     u16,
    	// block size of data
    	wBitsPerSample:  u16,
    	// number of bits per sample of mono data
    	cbSize:          u16,
    }
     

    extended waveform format structure used for all non-PCM formats. this structure is common to all non-PCM formats.

    WAVEFORMATEXTENSIBLE ¶

    WAVEFORMATEXTENSIBLE :: struct {
    	Format:        WAVEFORMATEX,
    	using Samples: struct #raw_union {
    		wValidBitsPerSample: u16,
    		// bits of precision  
    		wSamplesPerBlock:    u16,
    		// valid if wBitsPerSample==0 
    		wReserved:           u16,
    	},
    	dwChannelMask: bit_set[SPEAKER],
    	// which channels are  present in stream
    	SubFormat:     sys_windows.GUID,
    }
     

    New wave format development should be based on the WAVEFORMATEXTENSIBLE structure. WAVEFORMATEXTENSIBLE allows you to avoid having to register a new format tag with Microsoft. Simply define a new GUID value for the WAVEFORMATEXTENSIBLE.SubFormat field and use WAVE_FORMAT_EXTENSIBLE in the WAVEFORMATEXTENSIBLE.Format.wFormatTag field.

    WAVE_FORMAT ¶

    WAVE_FORMAT :: enum u16 {
    	UNKNOWN                    = 0x0000,    // Microsoft Corporation
    	ADPCM                      = 0x0002,    // Microsoft Corporation
    	IEEE_FLOAT                 = 0x0003,    // Microsoft Corporation
    	VSELP                      = 0x0004,    // Compaq Computer Corp.
    	IBM_CVSD                   = 0x0005,    // IBM Corporation
    	ALAW                       = 0x0006,    // Microsoft Corporation
    	MULAW                      = 0x0007,    // Microsoft Corporation
    	DTS                        = 0x0008,    // Microsoft Corporation
    	DRM                        = 0x0009,    // Microsoft Corporation
    	WMAVOICE9                  = 0x000A,    // Microsoft Corporation
    	WMAVOICE10                 = 0x000B,    // Microsoft Corporation
    	OKI_ADPCM                  = 0x0010,    // OKI
    	DVI_ADPCM                  = 0x0011,    // Intel Corporation
    	IMA_ADPCM                  = DVI_ADPCM, //  Intel Corporation
    	MEDIASPACE_ADPCM           = 0x0012,    // Videologic
    	SIERRA_ADPCM               = 0x0013,    // Sierra Semiconductor Corp
    	G723_ADPCM                 = 0x0014,    // Antex Electronics Corporation
    	DIGISTD                    = 0x0015,    // DSP Solutions, Inc.
    	DIGIFIX                    = 0x0016,    // DSP Solutions, Inc.
    	DIALOGIC_OKI_ADPCM         = 0x0017,    // Dialogic Corporation
    	MEDIAVISION_ADPCM          = 0x0018,    // Media Vision, Inc.
    	CU_CODEC                   = 0x0019,    // Hewlett-Packard Company
    	HP_DYN_VOICE               = 0x001A,    // Hewlett-Packard Company
    	YAMAHA_ADPCM               = 0x0020,    // Yamaha Corporation of America
    	SONARC                     = 0x0021,    // Speech Compression
    	DSPGROUP_TRUESPEECH        = 0x0022,    // DSP Group, Inc
    	ECHOSC1                    = 0x0023,    // Echo Speech Corporation
    	AUDIOFILE_AF36             = 0x0024,    // Virtual Music, Inc.
    	APTX                       = 0x0025,    // Audio Processing Technology
    	AUDIOFILE_AF10             = 0x0026,    // Virtual Music, Inc.
    	PROSODY_1612               = 0x0027,    // Aculab plc
    	LRC                        = 0x0028,    // Merging Technologies S.A.
    	DOLBY_AC2                  = 0x0030,    // Dolby Laboratories
    	GSM610                     = 0x0031,    // Microsoft Corporation
    	MSNAUDIO                   = 0x0032,    // Microsoft Corporation
    	ANTEX_ADPCME               = 0x0033,    // Antex Electronics Corporation
    	CONTROL_RES_VQLPC          = 0x0034,    // Control Resources Limited
    	DIGIREAL                   = 0x0035,    // DSP Solutions, Inc.
    	DIGIADPCM                  = 0x0036,    // DSP Solutions, Inc.
    	CONTROL_RES_CR10           = 0x0037,    // Control Resources Limited
    	NMS_VBXADPCM               = 0x0038,    // Natural MicroSystems
    	CS_IMAADPCM                = 0x0039,    // Crystal Semiconductor IMA ADPCM
    	ECHOSC3                    = 0x003A,    // Echo Speech Corporation
    	ROCKWELL_ADPCM             = 0x003B,    // Rockwell International
    	ROCKWELL_DIGITALK          = 0x003C,    // Rockwell International
    	XEBEC                      = 0x003D,    // Xebec Multimedia Solutions Limited
    	G721_ADPCM                 = 0x0040,    // Antex Electronics Corporation
    	G728_CELP                  = 0x0041,    // Antex Electronics Corporation
    	MSG723                     = 0x0042,    // Microsoft Corporation
    	INTEL_G723_1               = 0x0043,    // Intel Corp.
    	INTEL_G729                 = 0x0044,    // Intel Corp.
    	SHARP_G726                 = 0x0045,    // Sharp
    	MPEG                       = 0x0050,    // Microsoft Corporation
    	RT24                       = 0x0052,    // InSoft, Inc.
    	PAC                        = 0x0053,    // InSoft, Inc.
    	MPEGLAYER3                 = 0x0055,    // ISO/MPEG Layer3 Format Tag
    	LUCENT_G723                = 0x0059,    // Lucent Technologies
    	CIRRUS                     = 0x0060,    // Cirrus Logic
    	ESPCM                      = 0x0061,    // ESS Technology
    	VOXWARE                    = 0x0062,    // Voxware Inc
    	CANOPUS_ATRAC              = 0x0063,    // Canopus, co., Ltd.
    	G726_ADPCM                 = 0x0064,    // APICOM
    	G722_ADPCM                 = 0x0065,    // APICOM
    	DSAT                       = 0x0066,    // Microsoft Corporation
    	DSAT_DISPLAY               = 0x0067,    // Microsoft Corporation
    	VOXWARE_BYTE_ALIGNED       = 0x0069,    // Voxware Inc
    	VOXWARE_AC8                = 0x0070,    // Voxware Inc
    	VOXWARE_AC10               = 0x0071,    // Voxware Inc
    	VOXWARE_AC16               = 0x0072,    // Voxware Inc
    	VOXWARE_AC20               = 0x0073,    // Voxware Inc
    	VOXWARE_RT24               = 0x0074,    // Voxware Inc
    	VOXWARE_RT29               = 0x0075,    // Voxware Inc
    	VOXWARE_RT29HW             = 0x0076,    // Voxware Inc
    	VOXWARE_VR12               = 0x0077,    // Voxware Inc
    	VOXWARE_VR18               = 0x0078,    // Voxware Inc
    	VOXWARE_TQ40               = 0x0079,    // Voxware Inc
    	VOXWARE_SC3                = 0x007A,    // Voxware Inc
    	VOXWARE_SC3_1              = 0x007B,    // Voxware Inc
    	SOFTSOUND                  = 0x0080,    // Softsound, Ltd.
    	VOXWARE_TQ60               = 0x0081,    // Voxware Inc
    	MSRT24                     = 0x0082,    // Microsoft Corporation
    	G729A                      = 0x0083,    // AT&T Labs, Inc.
    	MVI_MVI2                   = 0x0084,    // Motion Pixels
    	DF_G726                    = 0x0085,    // DataFusion Systems (Pty) (Ltd)
    	DF_GSM610                  = 0x0086,    // DataFusion Systems (Pty) (Ltd)
    	ISIAUDIO                   = 0x0088,    // Iterated Systems, Inc.
    	ONLIVE                     = 0x0089,    // OnLive! Technologies, Inc.
    	MULTITUDE_FT_SX20          = 0x008A,    // Multitude Inc.
    	INFOCOM_ITS_G721_ADPCM     = 0x008B,    // Infocom
    	CONVEDIA_G729              = 0x008C,    // Convedia Corp.
    	CONGRUENCY                 = 0x008D,    // Congruency Inc.
    	SBC24                      = 0x0091,    // Siemens Business Communications Sys
    	DOLBY_AC3_SPDIF            = 0x0092,    // Sonic Foundry
    	MEDIASONIC_G723            = 0x0093,    // MediaSonic
    	PROSODY_8KBPS              = 0x0094,    // Aculab plc
    	ZYXEL_ADPCM                = 0x0097,    // ZyXEL Communications, Inc.
    	PHILIPS_LPCBB              = 0x0098,    // Philips Speech Processing
    	PACKED                     = 0x0099,    // Studer Professional Audio AG
    	MALDEN_PHONYTALK           = 0x00A0,    // Malden Electronics Ltd.
    	RACAL_RECORDER_GSM         = 0x00A1,    // Racal recorders
    	RACAL_RECORDER_G720_A      = 0x00A2,    // Racal recorders
    	RACAL_RECORDER_G723_1      = 0x00A3,    // Racal recorders
    	RACAL_RECORDER_TETRA_ACELP = 0x00A4,    // Racal recorders
    	NEC_AAC                    = 0x00B0,    // NEC Corp.
    	RAW_AAC1                   = 0x00FF,    // For Raw AAC, with format block AudioSpecificConfig() (as defined by MPEG-4), that follows WAVEFORMATEX
    	RHETOREX_ADPCM             = 0x0100,    // Rhetorex Inc.
    	IRAT                       = 0x0101,    // BeCubed Software Inc.
    	VIVO_G723                  = 0x0111,    // Vivo Software
    	VIVO_SIREN                 = 0x0112,    // Vivo Software
    	PHILIPS_CELP               = 0x0120,    // Philips Speech Processing
    	PHILIPS_GRUNDIG            = 0x0121,    // Philips Speech Processing
    	DIGITAL_G723               = 0x0123,    // Digital Equipment Corporation
    	SANYO_LD_ADPCM             = 0x0125,    // Sanyo Electric Co., Ltd.
    	SIPROLAB_ACEPLNET          = 0x0130,    // Sipro Lab Telecom Inc.
    	SIPROLAB_ACELP4800         = 0x0131,    // Sipro Lab Telecom Inc.
    	SIPROLAB_ACELP8V3          = 0x0132,    // Sipro Lab Telecom Inc.
    	SIPROLAB_G729              = 0x0133,    // Sipro Lab Telecom Inc.
    	SIPROLAB_G729A             = 0x0134,    // Sipro Lab Telecom Inc.
    	SIPROLAB_KELVIN            = 0x0135,    // Sipro Lab Telecom Inc.
    	VOICEAGE_AMR               = 0x0136,    // VoiceAge Corp.
    	G726ADPCM                  = 0x0140,    // Dictaphone Corporation
    	DICTAPHONE_CELP68          = 0x0141,    // Dictaphone Corporation
    	DICTAPHONE_CELP54          = 0x0142,    // Dictaphone Corporation
    	QUALCOMM_PUREVOICE         = 0x0150,    // Qualcomm, Inc.
    	QUALCOMM_HALFRATE          = 0x0151,    // Qualcomm, Inc.
    	TUBGSM                     = 0x0155,    // Ring Zero Systems, Inc.
    	MSAUDIO1                   = 0x0160,    // Microsoft Corporation
    	WMAUDIO2                   = 0x0161,    // Microsoft Corporation
    	WMAUDIO3                   = 0x0162,    // Microsoft Corporation
    	WMAUDIO_LOSSLESS           = 0x0163,    // Microsoft Corporation
    	WMASPDIF                   = 0x0164,    // Microsoft Corporation
    	UNISYS_NAP_ADPCM           = 0x0170,    // Unisys Corp.
    	UNISYS_NAP_ULAW            = 0x0171,    // Unisys Corp.
    	UNISYS_NAP_ALAW            = 0x0172,    // Unisys Corp.
    	UNISYS_NAP_16K             = 0x0173,    // Unisys Corp.
    	SYCOM_ACM_SYC008           = 0x0174,    // SyCom Technologies
    	SYCOM_ACM_SYC701_G726L     = 0x0175,    // SyCom Technologies
    	SYCOM_ACM_SYC701_CELP54    = 0x0176,    // SyCom Technologies
    	SYCOM_ACM_SYC701_CELP68    = 0x0177,    // SyCom Technologies
    	KNOWLEDGE_ADVENTURE_ADPCM  = 0x0178,    // Knowledge Adventure, Inc.
    	FRAUNHOFER_IIS_MPEG2_AAC   = 0x0180,    // Fraunhofer IIS
    	DTS_DS                     = 0x0190,    // Digital Theatre Systems, Inc.
    	CREATIVE_ADPCM             = 0x0200,    // Creative Labs, Inc
    	CREATIVE_FASTSPEECH8       = 0x0202,    // Creative Labs, Inc
    	CREATIVE_FASTSPEECH10      = 0x0203,    // Creative Labs, Inc
    	UHER_ADPCM                 = 0x0210,    // UHER informatic GmbH
    	ULEAD_DV_AUDIO             = 0x0215,    // Ulead Systems, Inc.
    	ULEAD_DV_AUDIO_1           = 0x0216,    // Ulead Systems, Inc.
    	QUARTERDECK                = 0x0220,    // Quarterdeck Corporation
    	ILINK_VC                   = 0x0230,    // I-link Worldwide
    	RAW_SPORT                  = 0x0240,    // Aureal Semiconductor
    	ESST_AC3                   = 0x0241,    // ESS Technology, Inc.
    	GENERIC_PASSTHRU           = 0x0249, 
    	IPI_HSX                    = 0x0250,    // Interactive Products, Inc.
    	IPI_RPELP                  = 0x0251,    // Interactive Products, Inc.
    	CS2                        = 0x0260,    // Consistent Software
    	SONY_SCX                   = 0x0270,    // Sony Corp.
    	SONY_SCY                   = 0x0271,    // Sony Corp.
    	SONY_ATRAC3                = 0x0272,    // Sony Corp.
    	SONY_SPC                   = 0x0273,    // Sony Corp.
    	TELUM_AUDIO                = 0x0280,    // Telum Inc.
    	TELUM_IA_AUDIO             = 0x0281,    // Telum Inc.
    	NORCOM_VOICE_SYSTEMS_ADPCM = 0x0285,    // Norcom Electronics Corp.
    	FM_TOWNS_SND               = 0x0300,    // Fujitsu Corp.
    	MICRONAS                   = 0x0350,    // Micronas Semiconductors, Inc.
    	MICRONAS_CELP833           = 0x0351,    // Micronas Semiconductors, Inc.
    	BTV_DIGITAL                = 0x0400,    // Brooktree Corporation
    	INTEL_MUSIC_CODER          = 0x0401,    // Intel Corp.
    	INDEO_AUDIO                = 0x0402,    // Ligos
    	QDESIGN_MUSIC              = 0x0450,    // QDesign Corporation
    	ON2_VP7_AUDIO              = 0x0500,    // On2 Technologies
    	ON2_VP6_AUDIO              = 0x0501,    // On2 Technologies
    	VME_VMPCM                  = 0x0680,    // AT&T Labs, Inc.
    	TPC                        = 0x0681,    // AT&T Labs, Inc.
    	LIGHTWAVE_LOSSLESS         = 0x08AE,    // Clearjump
    	OLIGSM                     = 0x1000,    // Ing C. Olivetti & C., S.p.A.
    	OLIADPCM                   = 0x1001,    // Ing C. Olivetti & C., S.p.A.
    	OLICELP                    = 0x1002,    // Ing C. Olivetti & C., S.p.A.
    	OLISBC                     = 0x1003,    // Ing C. Olivetti & C., S.p.A.
    	OLIOPR                     = 0x1004,    // Ing C. Olivetti & C., S.p.A.
    	LH_CODEC                   = 0x1100,    // Lernout & Hauspie
    	LH_CODEC_CELP              = 0x1101,    // Lernout & Hauspie
    	LH_CODEC_SBC8              = 0x1102,    // Lernout & Hauspie
    	LH_CODEC_SBC12             = 0x1103,    // Lernout & Hauspie
    	LH_CODEC_SBC16             = 0x1104,    // Lernout & Hauspie
    	NORRIS                     = 0x1400,    // Norris Communications, Inc.
    	ISIAUDIO_2                 = 0x1401,    // ISIAudio
    	SOUNDSPACE_MUSICOMPRESS    = 0x1500,    // AT&T Labs, Inc.
    	MPEG_ADTS_AAC              = 0x1600,    // Microsoft Corporation
    	MPEG_RAW_AAC               = 0x1601,    // Microsoft Corporation
    	MPEG_LOAS                  = 0x1602,    // Microsoft Corporation (MPEG-4 Audio Transport Streams (LOAS/LATM)
    	NOKIA_MPEG_ADTS_AAC        = 0x1608,    // Microsoft Corporation
    	NOKIA_MPEG_RAW_AAC         = 0x1609,    // Microsoft Corporation
    	VODAFONE_MPEG_ADTS_AAC     = 0x160A,    // Microsoft Corporation
    	VODAFONE_MPEG_RAW_AAC      = 0x160B,    // Microsoft Corporation
    	MPEG_HEAAC                 = 0x1610,    // Microsoft Corporation (MPEG-2 AAC or MPEG-4 HE-AAC v1/v2 streams with any payload (ADTS, ADIF, LOAS/LATM, RAW). Format block includes MP4 AudioSpecificConfig() -- see HEAACWAVEFORMAT below
    	VOXWARE_RT24_SPEECH        = 0x181C,    // Voxware Inc.
    	SONICFOUNDRY_LOSSLESS      = 0x1971,    // Sonic Foundry
    	INNINGS_TELECOM_ADPCM      = 0x1979,    // Innings Telecom Inc.
    	LUCENT_SX8300P             = 0x1C07,    // Lucent Technologies
    	LUCENT_SX5363S             = 0x1C0C,    // Lucent Technologies
    	CUSEEME                    = 0x1F03,    // CUSeeMe
    	NTCSOFT_ALF2CM_ACM         = 0x1FC4,    // NTCSoft
    	DVM                        = 0x2000,    // FAST Multimedia AG
    	DTS2                       = 0x2001, 
    	MAKEAVIS                   = 0x3313, 
    	DIVIO_MPEG4_AAC            = 0x4143,    // Divio, Inc.
    	NOKIA_ADAPTIVE_MULTIRATE   = 0x4201,    // Nokia
    	DIVIO_G726                 = 0x4243,    // Divio, Inc.
    	LEAD_SPEECH                = 0x434C,    // LEAD Technologies
    	LEAD_VORBIS                = 0x564C,    // LEAD Technologies
    	WAVPACK_AUDIO              = 0x5756,    // xiph.org
    	ALAC                       = 0x6C61,    // Apple Lossless
    	OGG_VORBIS_MODE_1          = 0x674F,    // Ogg Vorbis
    	OGG_VORBIS_MODE_2          = 0x6750,    // Ogg Vorbis
    	OGG_VORBIS_MODE_3          = 0x6751,    // Ogg Vorbis
    	OGG_VORBIS_MODE_1_PLUS     = 0x676F,    // Ogg Vorbis
    	OGG_VORBIS_MODE_2_PLUS     = 0x6770,    // Ogg Vorbis
    	OGG_VORBIS_MODE_3_PLUS     = 0x6771,    // Ogg Vorbis
    	_3COM_NBX                  = 0x7000,    // 3COM Corp.
    	OPUS                       = 0x704F,    // Opus
    	FAAD_AAC                   = 0x706D, 
    	AMR_NB                     = 0x7361,    // AMR Narrowband
    	AMR_WB                     = 0x7362,    // AMR Wideband
    	AMR_WP                     = 0x7363,    // AMR Wideband Plus
    	GSM_AMR_CBR                = 0x7A21,    // GSMA/3GPP
    	GSM_AMR_VBR_SID            = 0x7A22,    // GSMA/3GPP
    	COMVERSE_INFOSYS_G723_1    = 0xA100,    // Comverse Infosys
    	COMVERSE_INFOSYS_AVQSBC    = 0xA101,    // Comverse Infosys
    	COMVERSE_INFOSYS_SBC       = 0xA102,    // Comverse Infosys
    	SYMBOL_G729_A              = 0xA103,    // Symbol Technologies
    	VOICEAGE_AMR_WB            = 0xA104,    // VoiceAge Corp.
    	INGENIENT_G726             = 0xA105,    // Ingenient Technologies, Inc.
    	MPEG4_AAC                  = 0xA106,    // ISO/MPEG-4
    	ENCORE_G726                = 0xA107,    // Encore Software
    	ZOLL_ASAO                  = 0xA108,    // ZOLL Medical Corp.
    	SPEEX_VOICE                = 0xA109,    // xiph.org
    	VIANIX_MASC                = 0xA10A,    // Vianix LLC
    	WM9_SPECTRUM_ANALYZER      = 0xA10B,    // Microsoft
    	WMF_SPECTRUM_ANAYZER       = 0xA10C,    // Microsoft
    	GSM_610                    = 0xA10D, 
    	GSM_620                    = 0xA10E, 
    	GSM_660                    = 0xA10F, 
    	GSM_690                    = 0xA110, 
    	GSM_ADAPTIVE_MULTIRATE_WB  = 0xA111, 
    	POLYCOM_G722               = 0xA112,    // Polycom
    	POLYCOM_G728               = 0xA113,    // Polycom
    	POLYCOM_G729_A             = 0xA114,    // Polycom
    	POLYCOM_SIREN              = 0xA115,    // Polycom
    	GLOBAL_IP_ILBC             = 0xA116,    // Global IP
    	RADIOTIME_TIME_SHIFT_RADIO = 0xA117,    // RadioTime
    	NICE_ACA                   = 0xA118,    // Nice Systems
    	NICE_ADPCM                 = 0xA119,    // Nice Systems
    	VOCORD_G721                = 0xA11A,    // Vocord Telecom
    	VOCORD_G726                = 0xA11B,    // Vocord Telecom
    	VOCORD_G722_1              = 0xA11C,    // Vocord Telecom
    	VOCORD_G728                = 0xA11D,    // Vocord Telecom
    	VOCORD_G729                = 0xA11E,    // Vocord Telecom
    	VOCORD_G729_A              = 0xA11F,    // Vocord Telecom
    	VOCORD_G723_1              = 0xA120,    // Vocord Telecom
    	VOCORD_LBC                 = 0xA121,    // Vocord Telecom
    	NICE_G728                  = 0xA122,    // Nice Systems
    	FRACE_TELECOM_G729         = 0xA123,    // France Telecom
    	CODIAN                     = 0xA124,    // CODIAN
    	DOLBY_AC4                  = 0xAC40,    // Dolby AC-4
    	FLAC                       = 0xF1AC,    // flac.sourceforge.net
    	EXTENSIBLE                 = 0xFFFE,    // Microsoft
    }
     

    WAVE form wFormatTag IDs

    Constants

    AUDCLNT_STREAMOPTIONS_NONE ¶

    AUDCLNT_STREAMOPTIONS_NONE: bit_set[AUDCLNT_STREAMOPTION] : bit_set[AUDCLNT_STREAMOPTION]{}

    CLSID_MMDeviceEnumerator_STRING ¶

    CLSID_MMDeviceEnumerator_STRING :: "BCDE0395-E52F-467C-8E3D-C4579291692E"

    IID_IAudioClient_STRING ¶

    IID_IAudioClient_STRING :: "1CB9AD4C-DBFA-4c32-B178-C2F568A703B2"

    IID_IAudioRenderClient_STRING ¶

    IID_IAudioRenderClient_STRING :: "F294ACFC-3146-4483-A7BF-ADDCA7C260E2"

    IID_IMMDeviceEnumerator_STRING ¶

    IID_IMMDeviceEnumerator_STRING :: "A95664D2-9614-4F35-A746-DE8DB63617E6"

    KSDATAFORMAT_SUBTYPE_IEEE_FLOAT_STRING ¶

    KSDATAFORMAT_SUBTYPE_IEEE_FLOAT_STRING :: "00000003-0000-0010-8000-00aa00389b71"

    SPEAKERS_ALL ¶

    SPEAKERS_ALL: bit_set[SPEAKER] : transmute(bit_set[SPEAKER])u32(0x80000000)
     

    Used to specify that any possible permutation of speaker configurations

    Variables

    CLSID_MMDeviceEnumerator ¶

    CLSID_MMDeviceEnumerator: ^sys_windows.GUID = …

    IID_IAudioClient ¶

    IID_IAudioClient: ^sys_windows.GUID = …

    IID_IAudioRenderClient ¶

    IID_IAudioRenderClient: ^sys_windows.GUID = …

    IID_IMMDeviceEnumerator ¶

    IID_IMMDeviceEnumerator: ^sys_windows.GUID = …

    KSDATAFORMAT_SUBTYPE_IEEE_FLOAT ¶

    KSDATAFORMAT_SUBTYPE_IEEE_FLOAT: sys_windows.GUID = …

    Procedures

    This section is empty.

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2026-11 (vendor "odin") Windows_amd64 @ 2026-11-28 21:05:09.772358800 +0000 UTC