1 /*---------------------------------------------------------------------------* 2 Project: THP demo 3 File: THPPlayerCommon.h 4 5 Copyright (C)2002-2006 Nintendo All Rights Reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Log: THPPlayerCommon.h,v $ 14 Revision 1.1 02/03/2006 10:00:34 aka 15 Imported from Dolphin tree. 16 17 18 1 02/05/14 9:41a Suzuki 19 Initial check-in. 20 21 $NoKeywords: $ 22 23 *---------------------------------------------------------------------------*/ 24 25 #ifndef __THPPLAYERCOMMON_H__ 26 #define __THPPLAYERCOMMON_H__ 27 28 #include <revolution.h> 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 // player mode 35 typedef enum 36 { 37 THP_MODE_ALONE = 0x00, 38 THP_MODE_WITH_AX, 39 THP_MODE_WITH_MUSYX 40 } THPPlayerMode; 41 42 // play flag 43 typedef enum 44 { 45 THP_PLAY_ONESHOT = 0x00, 46 THP_PLAY_LOOP = 0x01 47 } THPPlayFlag; 48 49 // structure for read buffer 50 typedef struct 51 { 52 u8 *ptr; 53 s32 frameNumber; 54 volatile BOOL isValid; 55 } THPReadBuffer; 56 57 // structure for decoded video data 58 typedef struct 59 { 60 u8 *ytexture; 61 u8 *utexture; 62 u8 *vtexture; 63 s32 frameNumber; 64 } THPTextureSet; 65 66 // structure for decoded audio data 67 typedef struct 68 { 69 s16 *buffer; 70 s16 *curPtr; 71 u32 validSample; 72 } THPAudioBuffer; 73 74 #ifdef __cplusplus 75 } 76 #endif 77 78 #endif // __THPPLAYERCOMMON_H__ 79