1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     externalFileApp.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_TESTWARC_APP_H_
19 #define NW_SND_DEMO_TESTWARC_APP_H_
20 
21 #include "demolib.h"
22 #include <nw/snd.h>
23 
24 class ExternalFileApp : public nw::snd::demolib::AppBase
25 {
26 public:
27     ExternalFileApp();
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     void InitializeDemo();
40 
41     nw::snd::RomSoundArchive    m_Archive;
42     nw::snd::SoundArchivePlayer m_ArchivePlayer;
43     nw::snd::SoundDataManager   m_DataManager;
44     nw::snd::SoundHeap          m_Heap;
45     nw::snd::SoundHandle        m_Handle;
46 
47     void* m_pMemoryForSoundSystem;
48     void* m_pMemoryForInfoBlock;
49     void* m_pMemoryForStringBlock;
50     void* m_pMemoryForSoundDataManager;
51     void* m_pMemoryForSoundArchivePlayer;
52     void* m_pMemoryForSoundHeap;
53     void* m_pMemoryForStreamBuffer;
54 
55     void* m_pMemoryForExternalFile;
56     int   m_LengthForExternalFile;
57 };
58 
59 #endif /* NW_SND_DEMO_TESTWARC_APP_H_ */
60 
61