/*---------------------------------------------------------------------------* Project: NintendoWare File: snd_NoteOnCallback.h Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Revision: 22284 $ *---------------------------------------------------------------------------*/ #ifndef NW_SND_NOTE_ON_CALLBACK_H_ #define NW_SND_NOTE_ON_CALLBACK_H_ #include // Channel::ChannelCallback namespace nw { namespace snd { namespace internal { namespace driver { class SequenceSoundPlayer; struct NoteOnInfo { int prgNo; int key; int velocity; int length; int initPan; int priority; Channel::ChannelCallback channelCallback; u32 channelCallbackData; }; class NoteOnCallback { public: virtual ~NoteOnCallback() {} virtual Channel* NoteOn( SequenceSoundPlayer* sequenceSoundPlayer, u8 bankIndex, const NoteOnInfo& noteOnInfo ) = 0; }; } // namespace nw::snd::internal::driver } // namespace nw::snd::internal } // namespace nw::snd } // namespace nw #endif /* NW_SND_NOTE_ON_CALLBACK_H_ */