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