1 /***************************************************************************
\r
4 begin : Wed May 15 2002
\r
5 copyright : (C) 2002 by Pete Bernert
\r
6 email : BlackDove@addcom.de
\r
7 ***************************************************************************/
\r
8 /***************************************************************************
\r
10 * This program is free software; you can redistribute it and/or modify *
\r
11 * it under the terms of the GNU General Public License as published by *
\r
12 * the Free Software Foundation; either version 2 of the License, or *
\r
13 * (at your option) any later version. See also the license.txt file for *
\r
14 * additional informations. *
\r
16 ***************************************************************************/
\r
21 #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
\r
22 #define HTOLE16(x) __builtin_bswap16(x)
\r
23 #define LE16TOH(x) __builtin_bswap16(x)
\r
25 #define HTOLE16(x) (x)
\r
26 #define LE16TOH(x) (x)
\r
29 void ClearWorkingState(void);
\r
30 void CALLBACK SPUplayADPCMchannel(xa_decode_t *xap, unsigned int cycle, int is_start);
\r
31 int CALLBACK SPUplayCDDAchannel(short *pcm, int bytes, unsigned int cycle, int is_start);
\r
32 void FeedXA(const xa_decode_t *xap);
\r
33 void FeedCDDA(unsigned char *pcm, int nBytes);
\r
35 #endif /* __P_SPU_H__ */
\r