Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 1 | /* Definition for CoreAudio drivers : wine multimedia system |
| 2 | * |
Emmanuel Maillard | e64485d | 2007-05-13 21:36:22 +0200 | [diff] [blame] | 3 | * Copyright 2005-2007 Emmanuel Maillard |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
Alexandre Julliard | ea50196 | 2006-06-01 13:15:54 +0200 | [diff] [blame] | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifndef __WINE_COREAUDIO_H |
| 21 | #define __WINE_COREAUDIO_H |
| 22 | |
Ken Thomases | 1b5ca01 | 2009-10-11 14:11:19 -0500 | [diff] [blame] | 23 | #include "wine/debug.h" |
| 24 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 25 | extern LONG CoreAudio_WaveInit(void); |
| 26 | extern void CoreAudio_WaveRelease(void); |
| 27 | |
Emmanuel Maillard | 7ad29c8 | 2007-04-25 00:55:33 +0200 | [diff] [blame] | 28 | extern LONG CoreAudio_MIDIInit(void); |
Ken Thomases | c67f4cd | 2009-10-11 14:13:42 -0500 | [diff] [blame] | 29 | extern LONG CoreAudio_MIDIRelease(void); |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 30 | |
Emmanuel Maillard | e64485d | 2007-05-13 21:36:22 +0200 | [diff] [blame] | 31 | extern LONG CoreAudio_MixerInit(void); |
| 32 | extern void CoreAudio_MixerRelease(void); |
| 33 | |
Ken Thomases | 1b5ca01 | 2009-10-11 14:11:19 -0500 | [diff] [blame] | 34 | /* fourcc is in native order, where MSB is the first character. */ |
| 35 | static inline const char* wine_dbgstr_fourcc(unsigned long fourcc) |
| 36 | { |
| 37 | char buf[4] = { (char) (fourcc >> 24), (char) (fourcc >> 16), |
| 38 | (char) (fourcc >> 8), (char) fourcc }; |
| 39 | return wine_dbgstr_an(buf, sizeof(buf)); |
| 40 | } |
| 41 | |
Emmanuel Maillard | 144a535 | 2006-05-28 22:46:23 +0200 | [diff] [blame] | 42 | #endif /* __WINE_COREAUDIO_H */ |