1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     externalFileApp.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_TESTWARC_APP_H_
17 #define NW_SND_DEMO_TESTWARC_APP_H_
18 
19 #include "demolib.h"
20 #include <nw/snd.h>
21 
22 class ExternalFileApp : public nw::snd::demolib::AppBase
23 {
24 public:
25     ExternalFileApp();
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     void InitializeDemo();
38 
39     nw::snd::RomSoundArchive    m_Archive;
40     nw::snd::SoundArchivePlayer m_ArchivePlayer;
41     nw::snd::SoundDataManager   m_DataManager;
42     nw::snd::SoundHeap          m_Heap;
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_pMemoryForSoundHeap;
51     void* m_pMemoryForStreamBuffer;
52 
53     void* m_pMemoryForExternalFile;
54     int   m_LengthForExternalFile;
55 };
56 
57 #endif /* NW_SND_DEMO_TESTWARC_APP_H_ */
58 
59