1 /*---------------------------------------------------------------------------* 2 Project: Revolution DSP ADPCM encoder 3 File: dspadpcm.h 4 5 Copyright (C)1998-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: dspadpcm.h,v $ 14 Revision 1.3 2007/11/26 07:18:26 nakano_yoshinobu 15 Fix for VC2005. 16 17 Revision 1.2 2006/02/09 07:07:35 aka 18 Changed copyright. 19 20 21 *---------------------------------------------------------------------------*/ 22 23 #ifndef __DSPADPCM_H__ 24 #define __DSPADPCM_H__ 25 26 27 typedef struct 28 { 29 30 u32 channels; 31 u32 bitsPerSample; 32 u32 sampleRate; 33 u32 samples; 34 u32 loopStart; 35 u32 loopEnd; 36 u32 bufferLength; 37 38 } SOUNDINFO; 39 40 #define SOUND_FILE_SUCCESS 0 41 #define SOUND_FILE_FORMAT_ERROR 1 42 #define SOUND_FILE_FOPEN_ERROR 2 43 44 typedef struct 45 { 46 // start context 47 s16 coef[16]; 48 u16 gain; 49 u16 pred_scale; 50 s16 yn1; 51 s16 yn2; 52 53 // loop context 54 u16 loop_pred_scale; 55 s16 loop_yn1; 56 s16 loop_yn2; 57 58 } ADPCMINFO; 59 60 #pragma warning (disable: 4996) //for VC2005 61 62 #endif // __DSPADPCM_H__ 63