1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: MemorySoundArchiveApp.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 MemorySoundArchiveApp : 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::MemorySoundArchive m_Archive; 36 nw::snd::SoundArchivePlayer m_ArchivePlayer; 37 nw::snd::SoundDataManager m_DataManager; 38 nw::snd::SoundHandle m_Handle; 39 40 #if 0 41 void* m_pMemoryForInfoBlock; 42 void* m_pMemoryForStringBlock; 43 #endif 44 void* m_pMemoryForSoundSystem; 45 void* m_pMemoryForSoundDataManager; 46 void* m_pMemoryForSoundArchive; 47 void* m_pMemoryForSoundArchivePlayer; 48 void* m_pMemoryForStreamBuffer; 49 }; 50 51 #endif /* NW_SND_DEMO_SIMPLE_APP_H_ */ 52 53