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