1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     SoundActorApp.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_SOUND_ACTOR_APP_H_
19 #define NW_SND_DEMO_SOUND_ACTOR_APP_H_
20 
21 #include "demolib.h"
22 #include <nw/snd.h>
23 #include <nw/snd/snd_SoundActor.h>
24 
25 class SoundActorApp : public nw::snd::demolib::AppBase
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::SoundHeap          m_Heap;
42     nw::snd::SoundHandle        m_Handle;
43     nw::snd::SoundHandle        m_HandleForHoldSound;
44     nw::snd::SoundActor         m_Actor;
45 
46     f32 m_ActorPan;
47     f32 m_ActorVolume;
48 
49     void* m_pMemoryForSoundSystem;
50     void* m_pMemoryForInfoBlock;
51     void* m_pMemoryForSoundDataManager;
52     void* m_pMemoryForSoundArchivePlayer;
53     void* m_pMemoryForSoundHeap;
54     void* m_pMemoryForStreamBuffer;
55 };
56 
57 #endif /* NW_SND_DEMO_SOUND_ACTOR_APP_H_ */
58 
59