summaryrefslogtreecommitdiff
path: root/premix.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-11-13 21:35:53 +0100
committerGravatar waker <wakeroid@gmail.com>2010-11-13 21:35:53 +0100
commit086360352150cd032523090bbd75eb2f4208e6ed (patch)
tree166ebaa55e0cafa237ad821c77d178d08cc4b6a2 /premix.h
parent607479be3172aed4c5f906dcb326089e1d5538e6 (diff)
implemented conversion between streams with different channel masks
Diffstat (limited to 'premix.h')
-rw-r--r--premix.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/premix.h b/premix.h
new file mode 100644
index 00000000..e25707da
--- /dev/null
+++ b/premix.h
@@ -0,0 +1,27 @@
+/*
+ DeaDBeeF - ultimate music player for GNU/Linux systems with X11
+ Copyright (C) 2009-2010 Alexey Yakovenko <waker@users.sourceforge.net>
+
+ This program 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.
+
+ This program 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 this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+*/
+
+#ifndef __PREMIX_H
+#define __PREMIX_H
+
+// @returns number of output bytes
+int
+pcm_convert (const ddb_waveformat_t * restrict inputfmt, const char * restrict input, const ddb_waveformat_t * restrict outputfmt, char * restrict output, int inputsize);
+
+#endif