Huw Davies (@huw) commented about dlls/winecoreaudio.drv/coreaudio.c:
stream->period_ms = params->period / 10000; stream->period_frames = muldiv(params->period, stream->fmt->nSamplesPerSec, 10000000);
- stream->dev_id = params->dev_id;
- stream->dev_id = strtoul(params->device, NULL, 10);
I know it's simple, but perhaps we could have a `dev_id_from_device()` helper as it's used a few times.