1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: SimpleApp.h 4 5 Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. 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 $Revision:$ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NW_SND_DEMO_SIMPLE_APP_H_ 17 #define NW_SND_DEMO_SIMPLE_APP_H_ 18 19 #include "demolib.h" 20 #include <nw/snd.h> 21 22 class SimpleApp : public nw::snd::demolib::AppBase 23 { 24 protected: 25 virtual void OnInitialize(); 26 virtual void OnFinalize(); 27 virtual void OnDrawUpLCD( nw::font::TextWriter& ); 28 virtual void OnDrawDownLCD( nw::font::TextWriter& ); 29 virtual void OnUpdatePad( nw::demo::Pad& ); 30 virtual void OnUpdate(); 31 32 private: 33 void InitializeSoundSystem(); 34 35 nw::snd::RomSoundArchive m_Archive; 36 nw::snd::SoundArchivePlayer m_ArchivePlayer; 37 nw::snd::SoundDataManager m_DataManager; 38 nw::snd::SoundHeap m_Heap; 39 nw::snd::SoundHandle m_Handle; 40 41 void* m_pMemoryForSoundSystem; 42 void* m_pMemoryForInfoBlock; 43 void* m_pMemoryForSoundDataManager; 44 void* m_pMemoryForSoundArchivePlayer; 45 void* m_pMemoryForSoundHeap; 46 void* m_pMemoryForStreamBuffer; 47 }; 48 49 #endif /* NW_SND_DEMO_SIMPLE_APP_H_ */ 50 51