1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - include - snd - common 3 File: global.h 4 5 Copyright 2004-2008 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 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef NITRO_SND_COMMON_GLOBAL_H_ 19 #define NITRO_SND_COMMON_GLOBAL_H_ 20 21 #include <nitro/types.h> 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /****************************************************************************** 28 macro definition 29 ******************************************************************************/ 30 31 #define SND_MASTER_VOLUME_MAX 0x7f 32 33 /****************************************************************************** 34 enum definition 35 ******************************************************************************/ 36 37 typedef enum SNDChannelOut 38 { 39 SND_CHANNEL_OUT_MIXER, 40 SND_CHANNEL_OUT_BYPASS 41 } 42 SNDChannelOut; 43 44 typedef enum SNDOutput 45 { 46 SND_OUTPUT_MIXER, 47 SND_OUTPUT_CHANNEL1, 48 SND_OUTPUT_CHANNEL3, 49 SND_OUTPUT_CHANNEL1_3 50 } 51 SNDOutput; 52 53 /****************************************************************************** 54 public function declaration 55 ******************************************************************************/ 56 57 #ifdef SDK_ARM7 58 59 void SND_Enable(void); 60 void SND_Disable(void); 61 62 void SND_Shutdown(void); 63 64 void SND_BeginSleep(void); 65 void SND_EndSleep(void); 66 67 void SND_SetMasterVolume(int volume); 68 69 void SND_SetOutputSelector(SNDOutput left, 70 SNDOutput right, SNDChannelOut channel1, SNDChannelOut channel3); 71 72 #endif /* SDK_ARM7 */ 73 74 #ifdef __cplusplus 75 } /* extern "C" */ 76 #endif 77 78 #endif /* NITRO_SND_COMMON_GLOBAL_H_ */ 79 80