summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_coreaudio_chmap.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-05 21:47:19 +0200
committerwm4 <wm4@nowhere>2015-05-05 21:47:19 +0200
commit934109a35b895c4237001522a49c5e196ad0e200 (patch)
tree5ea935818a0310da1af0e57a82085992ca3a6c27 /audio/out/ao_coreaudio_chmap.h
parent399267393bb96710cde53c2fc7563f55cc32deb8 (diff)
downloadmpv-934109a35b895c4237001522a49c5e196ad0e200.tar.bz2
mpv-934109a35b895c4237001522a49c5e196ad0e200.tar.xz
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.
Diffstat (limited to 'audio/out/ao_coreaudio_chmap.h')
-rw-r--r--audio/out/ao_coreaudio_chmap.h25
1 files changed, 25 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef MPV_COREAUDIO_CHMAP_H
+#define MPV_COREAUDIO_CHMAP_H
+
+#include <AudioToolbox/AudioToolbox.h>
+
+bool ca_init_chmap(struct ao *ao, AudioDeviceID device);
+
+#endif