2006-05-28 22:46:23 +02:00
|
|
|
/* Definition for CoreAudio drivers : wine multimedia system
|
|
|
|
*
|
2007-05-13 21:36:22 +02:00
|
|
|
* Copyright 2005-2007 Emmanuel Maillard
|
2006-05-28 22:46:23 +02:00
|
|
|
*
|
|
|
|
* 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
|
2006-06-01 13:15:54 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2006-05-28 22:46:23 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_COREAUDIO_H
|
|
|
|
#define __WINE_COREAUDIO_H
|
|
|
|
|
2009-10-11 21:11:19 +02:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
2006-05-28 22:46:23 +02:00
|
|
|
extern LONG CoreAudio_WaveInit(void);
|
|
|
|
extern void CoreAudio_WaveRelease(void);
|
|
|
|
|
2007-04-25 00:55:33 +02:00
|
|
|
extern LONG CoreAudio_MIDIInit(void);
|
2009-10-11 21:13:42 +02:00
|
|
|
extern LONG CoreAudio_MIDIRelease(void);
|
2006-05-28 22:46:23 +02:00
|
|
|
|
2007-05-13 21:36:22 +02:00
|
|
|
extern LONG CoreAudio_MixerInit(void);
|
|
|
|
extern void CoreAudio_MixerRelease(void);
|
|
|
|
|
2009-10-11 21:11:19 +02:00
|
|
|
/* fourcc is in native order, where MSB is the first character. */
|
2010-11-13 18:05:18 +01:00
|
|
|
static inline const char* wine_dbgstr_fourcc(INT32 fourcc)
|
2009-10-11 21:11:19 +02:00
|
|
|
{
|
|
|
|
char buf[4] = { (char) (fourcc >> 24), (char) (fourcc >> 16),
|
|
|
|
(char) (fourcc >> 8), (char) fourcc };
|
2010-11-13 18:05:18 +01:00
|
|
|
/* 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);
|
2009-10-11 21:11:19 +02:00
|
|
|
return wine_dbgstr_an(buf, sizeof(buf));
|
|
|
|
}
|
|
|
|
|
2006-05-28 22:46:23 +02:00
|
|
|
#endif /* __WINE_COREAUDIO_H */
|