From 2ab3d99967d68c79351fe2a3df22c445447e3010 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Tue, 15 Nov 2011 22:28:48 +0100 Subject: Initial import. --- libao/src/include/ao/plugin.h | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 libao/src/include/ao/plugin.h (limited to 'libao/src/include/ao/plugin.h') diff --git a/libao/src/include/ao/plugin.h b/libao/src/include/ao/plugin.h new file mode 100644 index 0000000..29a3d96 --- /dev/null +++ b/libao/src/include/ao/plugin.h @@ -0,0 +1,51 @@ +/* + * + * plugin.h - function declarations for libao plugins + * + * Copyright (C) Stan Seibert - June 2001 + * + * This file is part of libao, a cross-platform audio outputlibrary. See + * README for a history of this source code. + * + * libao 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, or (at your option) + * any later version. + * + * libao 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 GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ +#ifndef __PLUGIN_H__ +#define __PLUGIN_H__ + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + +#include +#include "os_types.h" + +int ao_plugin_test(); +ao_info *ao_plugin_driver_info(); +int ao_plugin_device_init(ao_device *device); +int ao_plugin_set_option(ao_device *device, const char *key, const char *value); +int ao_plugin_open(ao_device *device, ao_sample_format *format); +int ao_plugin_play(ao_device *device, const char *output_samples, + uint_32 num_bytes); +int ao_plugin_close(ao_device *device); +void ao_plugin_device_clear(ao_device *device); +char *ao_plugin_file_extension(); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __PLUGIN_H__ */ -- cgit v1.2.3