15 Sep
2022
15 Sep
'22
8:20 a.m.
Huw Davies (@huw) commented about dlls/winecoreaudio.drv/mmdevdrv.c:
HANDLE event; float *vols;
- DWORD dev_id; + char dev_name[MAX_DEV_NAME_LEN + 1];
There shouldn't be any need to export `MAX_DEV_NAME_LEN` from the unixlib (just define it in `coreaudio.c`). Have a look how the alsa driver does this. Basically move `dev_name` to the end of the struct, and allocate enough space in `AUDDRV_GetAudioEndpoint()` once you know the length of the device name. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/813#note_8491