vkQuake2 doxygen  1.0 dev
ma_context Struct Reference

#include <miniaudio.h>

Public Attributes

ma_backend backend
 
ma_log_proc logCallback
 
ma_thread_priority threadPriority
 
voidpUserData
 
ma_mutex deviceEnumLock
 
ma_mutex deviceInfoLock
 
ma_uint32 deviceInfoCapacity
 
ma_uint32 playbackDeviceInfoCount
 
ma_uint32 captureDeviceInfoCount
 
ma_device_infopDeviceInfos
 
ma_bool32 isBackendAsynchronous: 1
 
ma_result(* onUninit )(ma_context *pContext)
 
ma_bool32(* onDeviceIDEqual )(ma_context *pContext, const ma_device_id *pID0, const ma_device_id *pID1)
 
ma_result(* onEnumDevices )(ma_context *pContext, ma_enum_devices_callback_proc callback, void *pUserData)
 
ma_result(* onGetDeviceInfo )(ma_context *pContext, ma_device_type deviceType, const ma_device_id *pDeviceID, ma_share_mode shareMode, ma_device_info *pDeviceInfo)
 
ma_result(* onDeviceInit )(ma_context *pContext, const ma_device_config *pConfig, ma_device *pDevice)
 
void(* onDeviceUninit )(ma_device *pDevice)
 
ma_result(* onDeviceStart )(ma_device *pDevice)
 
ma_result(* onDeviceStop )(ma_device *pDevice)
 
ma_result(* onDeviceWrite )(ma_device *pDevice, const void *pPCMFrames, ma_uint32 frameCount)
 
ma_result(* onDeviceRead )(ma_device *pDevice, void *pPCMFrames, ma_uint32 frameCount)
 
ma_result(* onDeviceMainLoop )(ma_device *pDevice)
 
union {
   struct {
      int   _unused
 
   }   wasapi
 
   struct {
      ma_handle   hDSoundDLL
 
      ma_proc   DirectSoundCreate
 
      ma_proc   DirectSoundEnumerateA
 
      ma_proc   DirectSoundCaptureCreate
 
      ma_proc   DirectSoundCaptureEnumerateA
 
   }   dsound
 
   struct {
      ma_handle   hWinMM
 
      ma_proc   waveOutGetNumDevs
 
      ma_proc   waveOutGetDevCapsA
 
      ma_proc   waveOutOpen
 
      ma_proc   waveOutClose
 
      ma_proc   waveOutPrepareHeader
 
      ma_proc   waveOutUnprepareHeader
 
      ma_proc   waveOutWrite
 
      ma_proc   waveOutReset
 
      ma_proc   waveInGetNumDevs
 
      ma_proc   waveInGetDevCapsA
 
      ma_proc   waveInOpen
 
      ma_proc   waveInClose
 
      ma_proc   waveInPrepareHeader
 
      ma_proc   waveInUnprepareHeader
 
      ma_proc   waveInAddBuffer
 
      ma_proc   waveInStart
 
      ma_proc   waveInReset
 
   }   winmm
 
   struct {
      ma_handle   jackSO
 
      ma_proc   jack_client_open
 
      ma_proc   jack_client_close
 
      ma_proc   jack_client_name_size
 
      ma_proc   jack_set_process_callback
 
      ma_proc   jack_set_buffer_size_callback
 
      ma_proc   jack_on_shutdown
 
      ma_proc   jack_get_sample_rate
 
      ma_proc   jack_get_buffer_size
 
      ma_proc   jack_get_ports
 
      ma_proc   jack_activate
 
      ma_proc   jack_deactivate
 
      ma_proc   jack_connect
 
      ma_proc   jack_port_register
 
      ma_proc   jack_port_name
 
      ma_proc   jack_port_get_buffer
 
      ma_proc   jack_free
 
      char *   pClientName
 
      ma_bool32   tryStartServer
 
   }   jack
 
   struct {
      int   _unused
 
   }   null_backend
 
}; 
 
union {
   struct {
      ma_handle   hOle32DLL
 
      ma_proc   CoInitializeEx
 
      ma_proc   CoUninitialize
 
      ma_proc   CoCreateInstance
 
      ma_proc   CoTaskMemFree
 
      ma_proc   PropVariantClear
 
      ma_proc   StringFromGUID2
 
      ma_handle   hUser32DLL
 
      ma_proc   GetForegroundWindow
 
      ma_proc   GetDesktopWindow
 
      ma_handle   hAdvapi32DLL
 
      ma_proc   RegOpenKeyExA
 
      ma_proc   RegCloseKey
 
      ma_proc   RegQueryValueExA
 
   }   win32
 
   int   _unused
 
}; 
 

Detailed Description

Definition at line 1955 of file miniaudio.h.

Member Data Documentation

◆ @36

union { ... }

◆ @38

union { ... }

◆ _unused

int ma_context::_unused

Definition at line 1986 of file miniaudio.h.

◆ backend

ma_backend ma_context::backend

Definition at line 1957 of file miniaudio.h.

◆ captureDeviceInfoCount

ma_uint32 ma_context::captureDeviceInfoCount

Definition at line 1965 of file miniaudio.h.

◆ CoCreateInstance

ma_proc ma_context::CoCreateInstance

Definition at line 2287 of file miniaudio.h.

◆ CoInitializeEx

ma_proc ma_context::CoInitializeEx

Definition at line 2285 of file miniaudio.h.

◆ CoTaskMemFree

ma_proc ma_context::CoTaskMemFree

Definition at line 2288 of file miniaudio.h.

◆ CoUninitialize

ma_proc ma_context::CoUninitialize

Definition at line 2286 of file miniaudio.h.

◆ deviceEnumLock

ma_mutex ma_context::deviceEnumLock

Definition at line 1961 of file miniaudio.h.

◆ deviceInfoCapacity

ma_uint32 ma_context::deviceInfoCapacity

Definition at line 1963 of file miniaudio.h.

◆ deviceInfoLock

ma_mutex ma_context::deviceInfoLock

Definition at line 1962 of file miniaudio.h.

◆ DirectSoundCaptureCreate

ma_proc ma_context::DirectSoundCaptureCreate

Definition at line 1995 of file miniaudio.h.

◆ DirectSoundCaptureEnumerateA

ma_proc ma_context::DirectSoundCaptureEnumerateA

Definition at line 1996 of file miniaudio.h.

◆ DirectSoundCreate

ma_proc ma_context::DirectSoundCreate

Definition at line 1993 of file miniaudio.h.

◆ DirectSoundEnumerateA

ma_proc ma_context::DirectSoundEnumerateA

Definition at line 1994 of file miniaudio.h.

◆ dsound

struct { ... } ma_context::dsound

◆ GetDesktopWindow

ma_proc ma_context::GetDesktopWindow

Definition at line 2294 of file miniaudio.h.

◆ GetForegroundWindow

ma_proc ma_context::GetForegroundWindow

Definition at line 2293 of file miniaudio.h.

◆ hAdvapi32DLL

ma_handle ma_context::hAdvapi32DLL

Definition at line 2296 of file miniaudio.h.

◆ hDSoundDLL

ma_handle ma_context::hDSoundDLL

Definition at line 1992 of file miniaudio.h.

◆ hOle32DLL

ma_handle ma_context::hOle32DLL

Definition at line 2284 of file miniaudio.h.

◆ hUser32DLL

ma_handle ma_context::hUser32DLL

Definition at line 2292 of file miniaudio.h.

◆ hWinMM

ma_handle ma_context::hWinMM

Definition at line 2002 of file miniaudio.h.

◆ isBackendAsynchronous

ma_bool32 ma_context::isBackendAsynchronous

Definition at line 1967 of file miniaudio.h.

◆ jack

struct { ... } ma_context::jack

◆ jack_activate

ma_proc ma_context::jack_activate

Definition at line 2153 of file miniaudio.h.

◆ jack_client_close

ma_proc ma_context::jack_client_close

Definition at line 2145 of file miniaudio.h.

◆ jack_client_name_size

ma_proc ma_context::jack_client_name_size

Definition at line 2146 of file miniaudio.h.

◆ jack_client_open

ma_proc ma_context::jack_client_open

Definition at line 2144 of file miniaudio.h.

◆ jack_connect

ma_proc ma_context::jack_connect

Definition at line 2155 of file miniaudio.h.

◆ jack_deactivate

ma_proc ma_context::jack_deactivate

Definition at line 2154 of file miniaudio.h.

◆ jack_free

ma_proc ma_context::jack_free

Definition at line 2159 of file miniaudio.h.

◆ jack_get_buffer_size

ma_proc ma_context::jack_get_buffer_size

Definition at line 2151 of file miniaudio.h.

◆ jack_get_ports

ma_proc ma_context::jack_get_ports

Definition at line 2152 of file miniaudio.h.

◆ jack_get_sample_rate

ma_proc ma_context::jack_get_sample_rate

Definition at line 2150 of file miniaudio.h.

◆ jack_on_shutdown

ma_proc ma_context::jack_on_shutdown

Definition at line 2149 of file miniaudio.h.

◆ jack_port_get_buffer

ma_proc ma_context::jack_port_get_buffer

Definition at line 2158 of file miniaudio.h.

◆ jack_port_name

ma_proc ma_context::jack_port_name

Definition at line 2157 of file miniaudio.h.

◆ jack_port_register

ma_proc ma_context::jack_port_register

Definition at line 2156 of file miniaudio.h.

◆ jack_set_buffer_size_callback

ma_proc ma_context::jack_set_buffer_size_callback

Definition at line 2148 of file miniaudio.h.

◆ jack_set_process_callback

ma_proc ma_context::jack_set_process_callback

Definition at line 2147 of file miniaudio.h.

◆ jackSO

ma_handle ma_context::jackSO

Definition at line 2143 of file miniaudio.h.

◆ logCallback

ma_log_proc ma_context::logCallback

Definition at line 1958 of file miniaudio.h.

◆ null_backend

struct { ... } ma_context::null_backend

◆ onDeviceIDEqual

ma_bool32(* ma_context::onDeviceIDEqual) (ma_context *pContext, const ma_device_id *pID0, const ma_device_id *pID1)

Definition at line 1970 of file miniaudio.h.

◆ onDeviceInit

ma_result(* ma_context::onDeviceInit) (ma_context *pContext, const ma_device_config *pConfig, ma_device *pDevice)

Definition at line 1973 of file miniaudio.h.

◆ onDeviceMainLoop

ma_result(* ma_context::onDeviceMainLoop) (ma_device *pDevice)

Definition at line 1979 of file miniaudio.h.

◆ onDeviceRead

ma_result(* ma_context::onDeviceRead) (ma_device *pDevice, void *pPCMFrames, ma_uint32 frameCount)

Definition at line 1978 of file miniaudio.h.

◆ onDeviceStart

ma_result(* ma_context::onDeviceStart) (ma_device *pDevice)

Definition at line 1975 of file miniaudio.h.

◆ onDeviceStop

ma_result(* ma_context::onDeviceStop) (ma_device *pDevice)

Definition at line 1976 of file miniaudio.h.

◆ onDeviceUninit

void(* ma_context::onDeviceUninit) (ma_device *pDevice)

Definition at line 1974 of file miniaudio.h.

◆ onDeviceWrite

ma_result(* ma_context::onDeviceWrite) (ma_device *pDevice, const void *pPCMFrames, ma_uint32 frameCount)

Definition at line 1977 of file miniaudio.h.

◆ onEnumDevices

ma_result(* ma_context::onEnumDevices) (ma_context *pContext, ma_enum_devices_callback_proc callback, void *pUserData)

Definition at line 1971 of file miniaudio.h.

◆ onGetDeviceInfo

ma_result(* ma_context::onGetDeviceInfo) (ma_context *pContext, ma_device_type deviceType, const ma_device_id *pDeviceID, ma_share_mode shareMode, ma_device_info *pDeviceInfo)

Definition at line 1972 of file miniaudio.h.

◆ onUninit

ma_result(* ma_context::onUninit) (ma_context *pContext)

Definition at line 1969 of file miniaudio.h.

◆ pClientName

char* ma_context::pClientName

Definition at line 2161 of file miniaudio.h.

◆ pDeviceInfos

ma_device_info* ma_context::pDeviceInfos

Definition at line 1966 of file miniaudio.h.

◆ playbackDeviceInfoCount

ma_uint32 ma_context::playbackDeviceInfoCount

Definition at line 1964 of file miniaudio.h.

◆ PropVariantClear

ma_proc ma_context::PropVariantClear

Definition at line 2289 of file miniaudio.h.

◆ pUserData

void* ma_context::pUserData

Definition at line 1960 of file miniaudio.h.

◆ RegCloseKey

ma_proc ma_context::RegCloseKey

Definition at line 2298 of file miniaudio.h.

◆ RegOpenKeyExA

ma_proc ma_context::RegOpenKeyExA

Definition at line 2297 of file miniaudio.h.

◆ RegQueryValueExA

ma_proc ma_context::RegQueryValueExA

Definition at line 2299 of file miniaudio.h.

◆ StringFromGUID2

ma_proc ma_context::StringFromGUID2

Definition at line 2290 of file miniaudio.h.

◆ threadPriority

ma_thread_priority ma_context::threadPriority

Definition at line 1959 of file miniaudio.h.

◆ tryStartServer

ma_bool32 ma_context::tryStartServer

Definition at line 2162 of file miniaudio.h.

◆ wasapi

struct { ... } ma_context::wasapi

◆ waveInAddBuffer

ma_proc ma_context::waveInAddBuffer

Definition at line 2017 of file miniaudio.h.

◆ waveInClose

ma_proc ma_context::waveInClose

Definition at line 2014 of file miniaudio.h.

◆ waveInGetDevCapsA

ma_proc ma_context::waveInGetDevCapsA

Definition at line 2012 of file miniaudio.h.

◆ waveInGetNumDevs

ma_proc ma_context::waveInGetNumDevs

Definition at line 2011 of file miniaudio.h.

◆ waveInOpen

ma_proc ma_context::waveInOpen

Definition at line 2013 of file miniaudio.h.

◆ waveInPrepareHeader

ma_proc ma_context::waveInPrepareHeader

Definition at line 2015 of file miniaudio.h.

◆ waveInReset

ma_proc ma_context::waveInReset

Definition at line 2019 of file miniaudio.h.

◆ waveInStart

ma_proc ma_context::waveInStart

Definition at line 2018 of file miniaudio.h.

◆ waveInUnprepareHeader

ma_proc ma_context::waveInUnprepareHeader

Definition at line 2016 of file miniaudio.h.

◆ waveOutClose

ma_proc ma_context::waveOutClose

Definition at line 2006 of file miniaudio.h.

◆ waveOutGetDevCapsA

ma_proc ma_context::waveOutGetDevCapsA

Definition at line 2004 of file miniaudio.h.

◆ waveOutGetNumDevs

ma_proc ma_context::waveOutGetNumDevs

Definition at line 2003 of file miniaudio.h.

◆ waveOutOpen

ma_proc ma_context::waveOutOpen

Definition at line 2005 of file miniaudio.h.

◆ waveOutPrepareHeader

ma_proc ma_context::waveOutPrepareHeader

Definition at line 2007 of file miniaudio.h.

◆ waveOutReset

ma_proc ma_context::waveOutReset

Definition at line 2010 of file miniaudio.h.

◆ waveOutUnprepareHeader

ma_proc ma_context::waveOutUnprepareHeader

Definition at line 2008 of file miniaudio.h.

◆ waveOutWrite

ma_proc ma_context::waveOutWrite

Definition at line 2009 of file miniaudio.h.

◆ win32

struct { ... } ma_context::win32

◆ winmm

struct { ... } ma_context::winmm