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