2015-05-05 19:47:19 +00:00
|
|
|
/*
|
|
|
|
* This file is part of mpv.
|
|
|
|
*
|
2016-01-19 20:21:49 +00:00
|
|
|
* mpv is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2015-05-05 19:47:19 +00:00
|
|
|
*
|
|
|
|
* mpv is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-01-19 20:21:49 +00:00
|
|
|
* GNU Lesser General Public License for more details.
|
2015-05-05 19:47:19 +00:00
|
|
|
*
|
2016-01-19 20:21:49 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
|
2015-05-05 19:47:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MPV_COREAUDIO_CHMAP_H
|
|
|
|
#define MPV_COREAUDIO_CHMAP_H
|
|
|
|
|
|
|
|
#include <AudioToolbox/AudioToolbox.h>
|
|
|
|
|
2023-10-19 12:18:52 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2015-10-21 16:54:48 +00:00
|
|
|
struct mp_chmap;
|
|
|
|
|
2016-10-19 22:08:48 +00:00
|
|
|
int ca_label_to_mp_speaker_id(AudioChannelLabel label);
|
|
|
|
|
|
|
|
#if HAVE_COREAUDIO
|
2015-05-05 19:47:19 +00:00
|
|
|
bool ca_init_chmap(struct ao *ao, AudioDeviceID device);
|
2015-10-21 16:54:48 +00:00
|
|
|
void ca_get_active_chmap(struct ao *ao, AudioDeviceID device, int channel_count,
|
|
|
|
struct mp_chmap *out_map);
|
2016-10-19 22:08:48 +00:00
|
|
|
#endif
|
2015-05-05 19:47:19 +00:00
|
|
|
|
|
|
|
#endif
|