mirror of https://github.com/mpv-player/mpv
ao_coreaudio: remove unused function
This commit is contained in:
parent
b735c0e207
commit
1aa943d8ab
|
@ -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();
|
||||
|
|
|
@ -65,7 +65,6 @@ bool ca_asbd_is_better(AudioStreamBasicDescription *req,
|
|||
int64_t ca_frames_to_us(struct ao *ao, uint32_t frames);
|
||||
int64_t ca_get_latency(const AudioTimeStamp *ts);
|
||||
|
||||
bool ca_device_supports_compressed(struct ao *ao, AudioDeviceID device);
|
||||
bool ca_stream_supports_compressed(struct ao *ao, AudioStreamID stream);
|
||||
OSStatus ca_lock_device(AudioDeviceID device, pid_t *pid);
|
||||
OSStatus ca_unlock_device(AudioDeviceID device, pid_t *pid);
|
||||
|
|
Loading…
Reference in New Issue