From 0463096b3c5a717a7c181801c8df797b046989fc Mon Sep 17 00:00:00 2001 From: rcombs Date: Wed, 26 May 2021 17:47:30 -0500 Subject: osdep: move cfstr<->cstr conversions to a new apple_utils.c file --- audio/out/ao_coreaudio_utils.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'audio/out/ao_coreaudio_utils.c') diff --git a/audio/out/ao_coreaudio_utils.c b/audio/out/ao_coreaudio_utils.c index f7869c2453..45c5eff9db 100644 --- a/audio/out/ao_coreaudio_utils.c +++ b/audio/out/ao_coreaudio_utils.c @@ -35,21 +35,6 @@ #include #endif -CFStringRef cfstr_from_cstr(char *str) -{ - return CFStringCreateWithCString(NULL, str, CA_CFSTR_ENCODING); -} - -char *cfstr_get_cstr(CFStringRef cfstr) -{ - CFIndex size = - CFStringGetMaximumSizeForEncoding( - CFStringGetLength(cfstr), CA_CFSTR_ENCODING) + 1; - char *buffer = talloc_zero_size(NULL, size); - CFStringGetCString(cfstr, buffer, size, CA_CFSTR_ENCODING); - return buffer; -} - #if HAVE_COREAUDIO static bool ca_is_output_device(struct ao *ao, AudioDeviceID dev) { -- cgit v1.2.3