1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: snd_NoteOnCallback.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_NOTE_ON_CALLBACK_H_ 17 #define NW_SND_NOTE_ON_CALLBACK_H_ 18 19 #include <nw/snd/snd_Channel.h> // Channel::ChannelCallback 20 21 namespace nw { 22 namespace snd { 23 namespace internal { 24 namespace driver { 25 26 class SequenceSoundPlayer; 27 28 struct NoteOnInfo 29 { 30 int prgNo; 31 int key; 32 int velocity; 33 int length; 34 int initPan; 35 int priority; 36 Channel::ChannelCallback channelCallback; 37 u32 channelCallbackData; 38 }; 39 40 class NoteOnCallback 41 { 42 public: ~NoteOnCallback()43 virtual ~NoteOnCallback() {} 44 45 virtual Channel* NoteOn( 46 SequenceSoundPlayer* sequenceSoundPlayer, 47 u8 bankIndex, 48 const NoteOnInfo& noteOnInfo 49 ) = 0; 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_NOTE_ON_CALLBACK_H_ */ 59 60