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