andrewrk / libsoundio

C library for cross-platform real-time audio input and output
http://libsound.io/
MIT License
1.93k stars 228 forks source link

layout name can be null #267

Open krumelmonster opened 2 years ago

krumelmonster commented 2 years ago

If a layout is not in builtin_channel_layouts, the corresponding char* SoundIoDevice::name will be NULL which should either be documented here: https://github.com/andrewrk/libsoundio/blob/8ab36069123a8b38e247ace55f8a6b3e6ee14f5f/soundio/soundio.h#L307 or changed to a generic name like "unknown layout" here: https://github.com/andrewrk/libsoundio/blob/8ab36069123a8b38e247ace55f8a6b3e6ee14f5f/src/channel_layout.c#L435