From 934109a35b895c4237001522a49c5e196ad0e200 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 May 2015 21:47:19 +0200 Subject: ao_coreaudio: move channel mapping code to a separate file Move all of the channel map retrieval/negotiation code to a separate file. This will (probably) be helpful when extending ao_coreaudio_exclusive.c. Nothing else changes, other than some minor cosmetics and renaming, and changing some details for decoupling it from the ao_coreaudio.c internals. --- audio/out/ao_coreaudio_chmap.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 audio/out/ao_coreaudio_chmap.h (limited to 'audio/out/ao_coreaudio_chmap.h') diff --git a/audio/out/ao_coreaudio_chmap.h b/audio/out/ao_coreaudio_chmap.h new file mode 100644 index 0000000000..ce31975b6d --- /dev/null +++ b/audio/out/ao_coreaudio_chmap.h @@ -0,0 +1,25 @@ +/* + * This file is part of mpv. + * + * mpv is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with mpv. If not, see . + */ + +#ifndef MPV_COREAUDIO_CHMAP_H +#define MPV_COREAUDIO_CHMAP_H + +#include + +bool ca_init_chmap(struct ao *ao, AudioDeviceID device); + +#endif -- cgit v1.2.3