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