blob: 4cf2b03c885f924bbf72a9a26f230b7813d5aa91 [file] [log] [blame]
Emmanuel Maillard144a5352006-05-28 22:46:23 +02001/* Definition for CoreAudio drivers : wine multimedia system
2 *
Emmanuel Maillarde64485d2007-05-13 21:36:22 +02003 * Copyright 2005-2007 Emmanuel Maillard
Emmanuel Maillard144a5352006-05-28 22:46:23 +02004 *
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 Julliardea501962006-06-01 13:15:54 +020017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Emmanuel Maillard144a5352006-05-28 22:46:23 +020018 */
19
20#ifndef __WINE_COREAUDIO_H
21#define __WINE_COREAUDIO_H
22
Ken Thomases1b5ca012009-10-11 14:11:19 -050023#include "wine/debug.h"
24
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025extern LONG CoreAudio_WaveInit(void);
26extern void CoreAudio_WaveRelease(void);
27
Emmanuel Maillard7ad29c82007-04-25 00:55:33 +020028extern LONG CoreAudio_MIDIInit(void);
Ken Thomasesc67f4cd2009-10-11 14:13:42 -050029extern LONG CoreAudio_MIDIRelease(void);
Emmanuel Maillard144a5352006-05-28 22:46:23 +020030
Emmanuel Maillarde64485d2007-05-13 21:36:22 +020031extern LONG CoreAudio_MixerInit(void);
32extern void CoreAudio_MixerRelease(void);
33
Ken Thomases1b5ca012009-10-11 14:11:19 -050034/* fourcc is in native order, where MSB is the first character. */
35static 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 Maillard144a5352006-05-28 22:46:23 +020042#endif /* __WINE_COREAUDIO_H */