1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     playerHeapApp.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_PLAYER_HEAP_APP_H_
17 #define NW_SND_DEMO_PLAYER_HEAP_APP_H_
18 
19 #include "demolib.h"
20 #include <nw/snd.h>
21 
22 class PlayerHeapApp : public nw::snd::demolib::AppBase
23 {
24 public:
25     PlayerHeapApp();
26 
27 protected:
28     virtual void OnInitialize();
29     virtual void OnFinalize();
30     virtual void OnDrawUpLCD( nw::font::TextWriter& );
31     virtual void OnDrawDownLCD( nw::font::TextWriter& );
32     virtual void OnUpdatePad( nw::demo::Pad& );
33     virtual void OnUpdate();
34 
35 private:
36     void InitializeSoundSystem();
37 
38     nw::snd::RomSoundArchive    m_Archive;
39     nw::snd::SoundArchivePlayer m_ArchivePlayer;
40     nw::snd::SoundDataManager   m_DataManager;
41     nw::snd::SoundHandle        m_Handle;
42 
43     void* m_pMemoryForSoundSystem;
44     void* m_pMemoryForInfoBlock;
45     void* m_pMemoryForStringBlock;
46     void* m_pMemoryForSoundDataManager;
47     void* m_pMemoryForSoundArchivePlayer;
48     void* m_pMemoryForStreamBuffer;
49 };
50 
51 #endif /* NW_SND_DEMO_PLAYER_HEAP_APP_H_ */
52 
53