audiounit: Fix buffer over-run in audiounit_enumerate_devices.
audiounit: Fix buffer over-run in audiounit_enumerate_devices.

If a device represented by a given AudioObjectID can be both
input *and* output, as on a machine with Soundflower installed, when
calling cubeb_enumerate_devices, audiounit_enumerate_devices would
overflow the result buffer.

This fixes the issue by double counting each device that supports
input and output when enumerating with CUBEB_DEVICE_TYPE_INPUT |
CUBEB_DEVICE_TYPE_OUTPUT.

kinetiknz/cubeb,kinetiknz/cubeb,kinetiknz/cubeb