[3325] | 1 | //channels.h: |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010 |
---|
| 5 | * |
---|
| 6 | * This file is part of libroar a part of RoarAudio, |
---|
| 7 | * a cross-platform sound system for both, home and professional use. |
---|
| 8 | * See README for details. |
---|
| 9 | * |
---|
| 10 | * This file is free software; you can redistribute it and/or modify |
---|
| 11 | * it under the terms of the GNU General Public License version 3 |
---|
| 12 | * as published by the Free Software Foundation. |
---|
| 13 | * |
---|
| 14 | * libroar is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License |
---|
| 20 | * along with this software; see the file COPYING. If not, write to |
---|
| 21 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
| 22 | * |
---|
| 23 | * NOTE for everyone want's to change something and send patches: |
---|
| 24 | * read README and HACKING! There a addition information on |
---|
| 25 | * the license of this document you need to read before you send |
---|
| 26 | * any patches. |
---|
| 27 | * |
---|
| 28 | * NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc |
---|
| 29 | * or libpulse*: |
---|
| 30 | * The libs libroaresd, libroararts and libroarpulse link this lib |
---|
| 31 | * and are therefore GPL. Because of this it may be illigal to use |
---|
| 32 | * them with any software that uses libesd, libartsc or libpulse*. |
---|
| 33 | */ |
---|
| 34 | |
---|
| 35 | #ifndef _LIBROARDSP_CHANNELS_H_ |
---|
| 36 | #define _LIBROARDSP_CHANNELS_H_ |
---|
| 37 | |
---|
| 38 | #include "libroardsp.h" |
---|
| 39 | |
---|
[3328] | 40 | #define ROARDSP_CHAN_EOL -1 |
---|
[3326] | 41 | #define ROARDSP_CHAN_NONE 0 |
---|
| 42 | #define ROARDSP_CHAN_FRONT_LEFT 1 |
---|
| 43 | #define ROARDSP_CHAN_FRONT_RIGHT 2 |
---|
| 44 | #define ROARDSP_CHAN_SIDE_LEFT 3 |
---|
| 45 | #define ROARDSP_CHAN_SIDE_RIGHT 4 |
---|
| 46 | #define ROARDSP_CHAN_BACK_LEFT 5 |
---|
| 47 | #define ROARDSP_CHAN_BACK_RIGHT 6 |
---|
| 48 | #define ROARDSP_CHAN_FRONT_CENTER 7 |
---|
| 49 | #define ROARDSP_CHAN_SIDE_CENTER 8 |
---|
| 50 | #define ROARDSP_CHAN_BACK_CENTER 9 |
---|
| 51 | |
---|
| 52 | #define ROARDSP_CHAN_LEFT ROARDSP_CHAN_FRONT_LEFT |
---|
| 53 | #define ROARDSP_CHAN_RIGHT ROARDSP_CHAN_FRONT_RIGHT |
---|
| 54 | #define ROARDSP_CHAN_CENTER ROARDSP_CHAN_FRONT_CENTER |
---|
| 55 | #define ROARDSP_CHAN_MONO ROARDSP_CHAN_CENTER |
---|
| 56 | |
---|
| 57 | #define ROARDSP_CHAN_MS_MID 10 |
---|
| 58 | #define ROARDSP_CHAN_MS_SIDE 11 |
---|
| 59 | |
---|
| 60 | #define ROARDSP_CHAN_LFE 12 |
---|
| 61 | |
---|
[3329] | 62 | #define ROARDSP_CHANMAP_IN 0 |
---|
| 63 | #define ROARDSP_CHANMAP_OUT 1 |
---|
| 64 | #define ROARDSP_CHANMAP_MAP 2 |
---|
| 65 | |
---|
| 66 | struct roardsp_chanmap { |
---|
| 67 | char in [ROAR_MAX_CHANNELS]; |
---|
| 68 | char out[ROAR_MAX_CHANNELS]; |
---|
| 69 | char map[ROAR_MAX_CHANNELS]; |
---|
| 70 | }; |
---|
[3328] | 71 | |
---|
| 72 | char * roardsp_chan2str (int chan); |
---|
| 73 | int roardsp_str2chan(char * str); |
---|
| 74 | |
---|
[3329] | 75 | int roardsp_chanmap_calc(struct roardsp_chanmap * map, int what, int err_on_none); |
---|
| 76 | |
---|
[3325] | 77 | #endif |
---|
| 78 | |
---|
| 79 | //ll |
---|