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: 22284 $
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 
22 namespace nw {
23 namespace snd {
24 
25 class SoundArchive;
26 class SoundArchivePlayer;
27 
28 namespace internal {
29 namespace driver {
30 
31 /* ========================================================================
32         class definition
33    ======================================================================== */
34 
35 class Bank
36 {
37 public:
38     /* ------------------------------------------------------------------------
39             class members
40        ------------------------------------------------------------------------ */
41     Bank();
42     ~Bank();
43 
44     Channel* NoteOn(
45         const void* bankFile,
46         const NoteOnInfo& noteOnInfo,
47         const SoundArchive& archive,
48         const SoundArchivePlayer& player
49     ) const;
50 };
51 
52 } // namespace nw::snd::internal::driver
53 } // namespace nw::snd::internal
54 } // namespace nw::snd
55 } // namespace nw
56 
57 
58 #endif /* NW_SND_BANK_H_ */
59 
60