//sources.h: /* * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2015 * * This file is part of roard a part of RoarAudio, * a cross-platform sound system for both, home and professional use. * See README for details. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 * as published by the Free Software Foundation. * * RoarAudio 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 software; see the file COPYING. If not, write to * the Free Software Foundation, 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #ifndef _SOURCES_H_ #define _SOURCES_H_ #include #ifndef ROAR_WITHOUT_DCOMP_SOURCES #define SRC_FLAG_NONE 0x00 #define SRC_FLAG_FHSEC 0x01 struct roar_source { char * name; char * desc; char * devices; unsigned int flags; unsigned int subsystems; int (*old_open)(const char * driver, const char * device, const char * container, const char * options, int primary); int (*new_open)(int stream , const char * device, int fh, const char * driver); }; int sources_init (void); int sources_free (void); int sources_set_client (int client); void print_sourcelist (void); int sources_add (char * driver, char * device, char * container, char * options, int primary); int sources_add_new (struct roar_source * source, char * driver, char * device, char * options, int primary); int sources_add_dstr (int stream , const char * device, int fh, const char * driver); int sources_add_cf (const char * driver, const char * device, const char * container, const char * options, int primary); int sources_add_roar (int stream, const char * device, int fh, const char * driver); int sources_add_radionoise (int stream, const char * device, int fh, const char * driver); #ifndef ROAR_WITHOUT_DCOMP_CDRIVER int sources_add_cdriver (int stream , const char * device, int fh, const char * driver); #endif #endif #endif //ll