1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     snd_Bank.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: 31311 $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef NW_SND_BANK_H_
19 #define NW_SND_BANK_H_
20 
21 #include <nw/snd/snd_NoteOnCallback.h>      // NoteOnInfo
22 #include <nw/snd/snd_Channel.h>
23 #include <nw/snd/snd_PlayerHeapDataManager.h>
24 
25 namespace nw {
26 namespace snd {
27 
28 class SoundArchive;
29 class SoundArchivePlayer;
30 
31 namespace internal {
32 namespace driver {
33 
34 /* ========================================================================
35         class definition
36    ======================================================================== */
37 
38 class Bank
39 {
40 public:
41     /* ------------------------------------------------------------------------
42             class members
43        ------------------------------------------------------------------------ */
44     Bank();
45     ~Bank();
46 
47     Channel* NoteOn(
48         const void* bankFile,
49         const NoteOnInfo& noteOnInfo,
50         const SoundArchive& archive,
51         const SoundArchivePlayer& player,
52         const PlayerHeapDataManager* dataMgr
53     ) const;
54 };
55 
56 } // namespace nw::snd::internal::driver
57 } // namespace nw::snd::internal
58 } // namespace nw::snd
59 } // namespace nw
60 
61 
62 #endif /* NW_SND_BANK_H_ */
63 
64