// I like to keep these explicitly defined because they're used as a key into a lookup table. When items are
...
...
@@ -654,8 +665,12 @@ typedef union
typedef struct
{
// Basic info. This is the only information guaranteed to be filled in during device enumeration.
mal_device_id id;
char name[256];
// Detailed info. As much of this is filled as possible with mal_context_get_device_info().
mal_share_mode shareMode; // Controls which share mode the data in this object is relevant for.
} mal_device_info;
typedef struct
...
...
@@ -804,9 +819,9 @@ struct mal_context
mal_uint32 captureDeviceInfoCount;
mal_device_info* pDeviceInfos; // Playback devices first, then capture.
mal_result(*onEnumDevices)(mal_context*pContext,mal_enum_devices_callback_proccallback,void*pUserData);// Return false from the callback to stop enumeration.
mal_assert(MAL_FALSE); // NOTE: If this is triggered, please report it. It means the format of the ID must haved change and is too long to fit in our fixed sized buffer.