From 086360352150cd032523090bbd75eb2f4208e6ed Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 13 Nov 2010 21:35:53 +0100 Subject: implemented conversion between streams with different channel masks --- premix.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 premix.h (limited to 'premix.h') 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 + + 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 -- cgit v1.2.3