mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
osxaudio: Remove unused function
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7340>
This commit is contained in:
parent
314d67b8cc
commit
f537f22522
1 changed files with 0 additions and 29 deletions
|
@ -176,35 +176,6 @@ _audio_device_has_input (AudioDeviceID device_id)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
static inline AudioDeviceID
|
||||
_audio_system_get_default_device (gboolean output)
|
||||
{
|
||||
OSStatus status = noErr;
|
||||
UInt32 propertySize = sizeof (AudioDeviceID);
|
||||
AudioDeviceID device_id = kAudioDeviceUnknown;
|
||||
AudioObjectPropertySelector prop_selector;
|
||||
|
||||
prop_selector = output ? kAudioHardwarePropertyDefaultOutputDevice :
|
||||
kAudioHardwarePropertyDefaultInputDevice;
|
||||
|
||||
AudioObjectPropertyAddress defaultDeviceAddress = {
|
||||
prop_selector,
|
||||
kAudioObjectPropertyScopeGlobal,
|
||||
kAudioObjectPropertyElementMain
|
||||
};
|
||||
|
||||
status = AudioObjectGetPropertyData (kAudioObjectSystemObject,
|
||||
&defaultDeviceAddress, 0, NULL, &propertySize, &device_id);
|
||||
if (status != noErr) {
|
||||
GST_ERROR ("failed getting default output device: %d", (int) status);
|
||||
}
|
||||
|
||||
GST_DEBUG ("Default device id: %u", (unsigned) device_id);
|
||||
|
||||
return device_id;
|
||||
}
|
||||
|
||||
static inline AudioDeviceID *
|
||||
_audio_system_get_devices (gint * ndevices)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue