coreaudio.h 1.65 KB
Newer Older
1 2
/* Definition for CoreAudio drivers : wine multimedia system
 *
3
 * Copyright 2005-2007 Emmanuel Maillard
4 5 6 7 8 9 10 11 12 13 14 15 16
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * 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
18 19 20 21 22
 */

#ifndef __WINE_COREAUDIO_H
#define __WINE_COREAUDIO_H

23 24
#include "wine/debug.h"

25 26 27
extern LONG CoreAudio_WaveInit(void);
extern void CoreAudio_WaveRelease(void);

28
extern LONG CoreAudio_MIDIInit(void);
29
extern LONG CoreAudio_MIDIRelease(void);
30

31 32 33
extern LONG CoreAudio_MixerInit(void);
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(INT32 fourcc)
36 37 38
{
    char buf[4] = { (char) (fourcc >> 24), (char) (fourcc >> 16),
                    (char) (fourcc >> 8),  (char) fourcc };
39 40 41
    /* OSStatus is a signed decimal except in parts of CoreAudio */
    if ((buf[0] < 32) || (buf[1] < 32) || (buf[2] < 32) || (buf[3] < 32))
	return wine_dbg_sprintf("%d", fourcc);
42 43 44
    return wine_dbgstr_an(buf, sizeof(buf));
}

45
#endif /* __WINE_COREAUDIO_H */