From 1aa943d8ab492ec08b26b0cc45b233953b1d6071 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Apr 2016 14:14:42 +0200 Subject: ao_coreaudio: remove unused function --- audio/out/ao_coreaudio_utils.c | 24 ------------------------ 1 file changed, 24 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 6b5d8a7195..2ea6df73cd 100644 --- a/audio/out/ao_coreaudio_utils.c +++ b/audio/out/ao_coreaudio_utils.c @@ -334,30 +334,6 @@ coreaudio_error: return false; } -bool ca_device_supports_compressed(struct ao *ao, AudioDeviceID device) -{ - AudioStreamID *streams = NULL; - size_t n_streams; - - /* Retrieve all the output streams. */ - OSStatus err = - CA_GET_ARY_O(device, kAudioDevicePropertyStreams, &streams, &n_streams); - - CHECK_CA_ERROR("could not get number of streams."); - - for (int i = 0; i < n_streams; i++) { - if (ca_stream_supports_compressed(ao, streams[i])) { - talloc_free(streams); - return true; - } - } - - talloc_free(streams); - -coreaudio_error: - return false; -} - OSStatus ca_lock_device(AudioDeviceID device, pid_t *pid) { *pid = getpid(); -- cgit v1.2.3