1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     snd_MidiSequenceTrackAllocator.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_MIDI_SEQUENCE_TRACK_ALLOCATOR_H_
19 #define NW_SND_MIDI_SEQUENCE_TRACK_ALLOCATOR_H_
20 
21 #include <nw/snd/snd_SequenceTrackAllocator.h>
22 
23 namespace nw {
24 namespace snd {
25 namespace internal {
26 namespace driver {
27 
28 /* ========================================================================
29         class difinition
30    ======================================================================== */
31 
32 class MidiSequenceTrackAllocator : public SequenceTrackAllocator
33 {
34 public:
MidiSequenceTrackAllocator()35     MidiSequenceTrackAllocator() {}
36 
37     virtual SequenceTrack* AllocTrack( SequenceSoundPlayer* player );
38     virtual void FreeTrack( SequenceTrack* track );
39     virtual int GetAllocatableTrackCount() const;
40 
41     unsigned long Create( void* buffer, unsigned long size );
42     void Destroy( void* buffer, unsigned long size );
43 };
44 
45 } // namespace nw::snd::internal::driver
46 } // namespace nw::snd::internal
47 } // namespace nw::snd
48 } // namespace nw
49 
50 
51 #endif /* NW_SND_MIDI_SEQUENCE_TRACK_ALLOCATOR_H_ */
52 
53