ao_coreaudio: specify UTF-8 as text encoding for CFString conversions

This matches our internal expectations, as well as fixes handling
of non-ASCII device descriptions.
This commit is contained in:
rcombs 2020-02-25 22:40:23 -06:00 committed by Jan Ekström
parent e5e918954f
commit 89bd6ead6c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
#include "audio/out/ao.h"
#include "internal.h"
#define CA_CFSTR_ENCODING kCFStringEncodingASCII
#define CA_CFSTR_ENCODING kCFStringEncodingUTF8
CFStringRef cfstr_from_cstr(char *str);
char *cfstr_get_cstr(CFStringRef cfstr);