setupapi: Fix memory leak.
[wine/hacks.git] / dlls / winecoreaudio.drv / coreaudio.h
blob4cf2b03c885f924bbf72a9a26f230b7813d5aa91
1 /* Definition for CoreAudio drivers : wine multimedia system
3 * Copyright 2005-2007 Emmanuel Maillard
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.
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.
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
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_COREAUDIO_H
21 #define __WINE_COREAUDIO_H
23 #include "wine/debug.h"
25 extern LONG CoreAudio_WaveInit(void);
26 extern void CoreAudio_WaveRelease(void);
28 extern LONG CoreAudio_MIDIInit(void);
29 extern LONG CoreAudio_MIDIRelease(void);
31 extern LONG CoreAudio_MixerInit(void);
32 extern void CoreAudio_MixerRelease(void);
34 /* fourcc is in native order, where MSB is the first character. */
35 static inline const char* wine_dbgstr_fourcc(unsigned long fourcc)
37 char buf[4] = { (char) (fourcc >> 24), (char) (fourcc >> 16),
38 (char) (fourcc >> 8), (char) fourcc };
39 return wine_dbgstr_an(buf, sizeof(buf));
42 #endif /* __WINE_COREAUDIO_H */