| 1 | /***************************************************************************\r |
| 2 | spu.h - description\r |
| 3 | -------------------\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 |
| 9 | * *\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 |
| 15 | * *\r |
| 16 | ***************************************************************************/\r |
| 17 | \r |
| 18 | #ifndef __P_SPU_H__\r |
| 19 | #define __P_SPU_H__\r |
| 20 | \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 |
| 24 | #else\r |
| 25 | #define HTOLE16(x) (x)\r |
| 26 | #define LE16TOH(x) (x)\r |
| 27 | #endif\r |
| 28 | \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 |
| 34 | \r |
| 35 | #endif /* __P_SPU_H__ */\r |