File indexing completed on 2024-04-21 04:54:20
0001 /* This file is part of the KDE project 0002 Copyright (C) 2006 Alexander Kern <alex.kern@gmx.de> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License version 2 as published by the Free Software Foundation. 0007 0008 This library is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 Library General Public License for more details. 0012 0013 You should have received a copy of the GNU Library General Public License 0014 along with this library; see the file COPYING.LIB. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef __AUDIO_H__ 0020 #define __AUDIO_H__ 0021 0022 #ifndef NULL 0023 #define NULL 0 0024 #endif 0025 struct wm_cdda_block; 0026 0027 struct audio_oops { 0028 int (*wmaudio_open)(void); 0029 int (*wmaudio_close)(void); 0030 int (*wmaudio_play)(struct wm_cdda_block*); 0031 int (*wmaudio_pause)(void); 0032 int (*wmaudio_stop)(void); 0033 int (*wmaudio_state)(struct wm_cdda_block*); 0034 int (*wmaudio_balvol)(int, int *, int *); 0035 }; 0036 0037 #ifdef __cplusplus 0038 extern "C" { 0039 #endif 0040 0041 struct audio_oops *setup_soundsystem(const char *, const char *, const char *); 0042 0043 #ifdef __cplusplus 0044 } 0045 #endif 0046 0047 #endif /* __AUDIO_H__ */