1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     playerHeapApp.h
4 
5   Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain proprietary
8   information of Nintendo and/or its licensed developers and are protected by
9   national and international copyright laws. They may not be disclosed to third
10   parties or copied or duplicated in any form, in whole or in part, without the
11   prior written consent of Nintendo.
12 
13   The content herein is highly confidential and should be handled accordingly.
14 
15   $Revision: $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef NW_SND_DEMO_PLAYER_HEAP_APP_H_
19 #define NW_SND_DEMO_PLAYER_HEAP_APP_H_
20 
21 #include "demolib.h"
22 #include <nw/snd.h>
23 
24 class PlayerHeapApp : public nw::snd::demolib::AppBase
25 {
26 public:
27     PlayerHeapApp();
28 
29 protected:
30     virtual void OnInitialize();
31     virtual void OnFinalize();
32     virtual void OnDrawUpLCD( nw::font::TextWriter& );
33     virtual void OnDrawDownLCD( nw::font::TextWriter& );
34     virtual void OnUpdatePad( nw::demo::Pad& );
35     virtual void OnUpdate();
36 
37 private:
38     void InitializeSoundSystem();
39 
40     nw::snd::RomSoundArchive    m_Archive;
41     nw::snd::SoundArchivePlayer m_ArchivePlayer;
42     nw::snd::SoundDataManager   m_DataManager;
43     nw::snd::SoundHandle        m_Handle;
44 
45     void* m_pMemoryForSoundSystem;
46     void* m_pMemoryForInfoBlock;
47     void* m_pMemoryForStringBlock;
48     void* m_pMemoryForSoundDataManager;
49     void* m_pMemoryForSoundArchivePlayer;
50     void* m_pMemoryForStreamBuffer;
51 };
52 
53 #endif /* NW_SND_DEMO_PLAYER_HEAP_APP_H_ */
54 
55