mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 17:53:38 +00:00
![Huw Davies](/assets/img/avatar_default.png)
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
37 lines
1.4 KiB
C
37 lines
1.4 KiB
C
/* Definition for CoreAudio drivers : wine multimedia system
|
|
*
|
|
* Copyright 2005-2007 Emmanuel Maillard
|
|
*
|
|
* 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
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#ifndef __WINE_COREAUDIO_H
|
|
#define __WINE_COREAUDIO_H
|
|
|
|
#include "wine/debug.h"
|
|
|
|
/* fourcc is in native order, where MSB is the first character. */
|
|
static inline const char* wine_dbgstr_fourcc(INT32 fourcc)
|
|
{
|
|
char buf[4] = { (char) (fourcc >> 24), (char) (fourcc >> 16),
|
|
(char) (fourcc >> 8), (char) fourcc };
|
|
/* 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);
|
|
return wine_dbgstr_an(buf, sizeof(buf));
|
|
}
|
|
|
|
#endif /* __WINE_COREAUDIO_H */
|