acp: add channel to string function

Add a function to convert the channel to a string and use that
instead of the unsafe one.

Fixes #519
This commit is contained in:
Wim Taymans 2020-12-28 13:27:34 +01:00
parent 509152108a
commit c84646b66f
3 changed files with 62 additions and 5 deletions

View file

@ -101,6 +101,8 @@ enum acp_channel {
ACP_CHANNEL_CUSTOM_START = 0x10000,
};
char *acp_channel_str(char *buf, size_t len, enum acp_channel ch);
struct acp_format {
uint32_t flags;
uint32_t format_mask;