Wwise SDK
_ak_m_m_device_8h_source
Version
menu_open
link
AkMMDevice.h
Go to the documentation of this file.
466 pEnumerator->GetDefaultAudioEndpoint(eRender, in_eRole, (IMMDevice**)&pDevice.pDevice); //Transfer the ref
480 virtual Device Item(AkUInt32 in_idx) = 0; ///Gets item in_idx from the cache. Must be smaller than Count(). This function can block.
481 virtual void Lock() = 0; /// For thread safety. If you iterate through all the devices, lock the enumerator to avoid changes. However, if only accessing one single item, Item() is thread safe in itself.
483 virtual Device FindDevice(AkUInt32 in_id) = 0; ///Find a device that has this unique ID. The Id is one returned by AK::GetDeviceID.
virtual Device Item(AkUInt32 in_idx)=0
Returns the number of devices. This function can block.
DeviceProperty(const PROPERTYKEY &key, IPropertyStore *in_pProps)
Definition: AkMMDevice.h:62
DeviceCollection(IMMDeviceEnumerator *pEnumerator, EDataFlow eFlow, DWORD dwStateMask)
Definition: AkMMDevice.h:342
Definition: AkMMDevice.h:271
DeviceProperties(const DeviceProperties &other)=delete
DeviceEnumerator & operator=(const DeviceEnumerator &other)=delete
Iterator(IMMDeviceCollection *in_pDevices, UINT in_i)
Definition: AkMMDevice.h:276
DeviceProperty GetProperty(const PROPERTYKEY &key)
Definition: AkMMDevice.h:151
virtual void Lock()=0
Gets item in_idx from the cache. Must be smaller than Count(). This function can block.
DeviceProperties & operator=(DeviceProperties &&other)
Definition: AkMMDevice.h:137
Definition: AkMMDevice.h:36
DeviceCollection(const DeviceCollection &other)=delete
Definition: AkMMDevice.h:102
DeviceCollection & operator=(DeviceCollection &&other)
Definition: AkMMDevice.h:375
DeviceCollection(DeviceCollection &&other)
Definition: AkMMDevice.h:353
DeviceProperties & operator=(const DeviceProperties &other)=delete
Definition: AkMMDevice.h:53
Interface to access the IMMDevice cache. This avoids driver accesses.
Definition: AkMMDevice.h:477
DeviceProperty(const DeviceProperty &other)=delete
Iterator operator+(AkUInt32 inc) const
Definition: AkMMDevice.h:283
DeviceEnumerator(DeviceEnumerator &&other)
Definition: AkMMDevice.h:427
interface IMMDeviceCollection * pDevices
Definition: AkMMDevice.h:330
interface IMMDeviceEnumerator * pEnumerator
Definition: AkMMDevice.h:472
virtual AkUInt32 Count()=0
interface IMMDeviceCollection * pDevices
Definition: AkMMDevice.h:409
bool operator!=(const Iterator &in_rOp) const
!= operator</div>
Definition: AkMMDevice.h:316
DeviceProperty & operator=(const DeviceProperty &other)=delete
Definition: AkMMDevice.h:159
AkUInt32 operator-(Iterator const &rhs) const
Definition: AkMMDevice.h:290
DeviceEnumerator(const DeviceEnumerator &other)=delete
Iterator & operator++()
++ operator</div>
Definition: AkMMDevice.h:296
DeviceProperties(IMMDevice *in_pDevice)
Definition: AkMMDevice.h:111
virtual void Unlock()=0
For thread safety. If you iterate through all the devices, lock the enumerator to avoid changes....
bool operator==(const Iterator &in_rOp) const
== operator</div>
Definition: AkMMDevice.h:310
Definition: AkMMDevice.h:414
DeviceProperty(DeviceProperty &&other)
Definition: AkMMDevice.h:69
DeviceCollection(IMMDeviceEnumerator *pEnumerator)
Definition: AkMMDevice.h:334
virtual Device FindDevice(AkUInt32 in_id)=0
For thread safety. See Lock()
DeviceEnumerator & operator=(DeviceEnumerator &&other)
Definition: AkMMDevice.h:447
Device GetDefaultDevice(ERole in_eRole)
Definition: AkMMDevice.h:463
AkForceInline AkInt32 AkWideCharToChar(const wchar_t *in_pszUnicodeString, AkUInt32 in_uiOutBufferSize, char *io_pszAnsiString)
String conversion helper.
Definition: AkPlatformFuncs.h:409
DeviceCollection & operator=(const DeviceCollection &other)=delete
void CheckForDuplicateEntries()
Definition: AkMMDevice.h:40
Iterator & operator--()
– operator</div>
Definition: AkMMDevice.h:303
static HashParams::HashType ComputeLowerCase(const char *in_pData)
Definition: AkFNVHash.h:130
DeviceProperty & operator=(DeviceProperty &&other)
Definition: AkMMDevice.h:85
DeviceProperties(DeviceProperties &&other)
Definition: AkMMDevice.h:117
Was this page helpful?
Need Support?
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageTell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise