1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: midi_Midi.h 4 5 Copyright (C)2009 Nintendo Co., Ltd. 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 $Rev: 16865 $ 14 *---------------------------------------------------------------------------*/ 15 16 // 17 // このファイルを編集しないでください。 18 // このファイルは自動生成されます。 19 // 20 21 #ifndef NN_MIDI_CTR_MIDI_MIDI_H_ 22 #define NN_MIDI_CTR_MIDI_MIDI_H_ 23 24 #include <nn/Handle.h> 25 #include <nn/Result.h> 26 #include <nn/types.h> 27 #include <nn/midi/CTR/midi_Api.h> 28 29 30 31 namespace nn { 32 namespace midi { 33 namespace CTR { 34 35 class Midi 36 { 37 public: 38 enum Tag 39 { 40 TAG_IPC_ERROR, 41 TAG_OPEN, 42 TAG_CLOSE, 43 TAG_GET_DEVICE_INFO, 44 TAG_GET_READABLE_LENGTH, 45 TAG_READ, 46 TAG_IPC_END 47 }; 48 49 private: 50 Handle m_Session; 51 52 public: Midi(Handle session)53 Midi(Handle session) : m_Session(session) {} 54 55 public: 56 nn::Result Open(); 57 nn::Result Close(); 58 nn::Result GetDeviceInfo( DeviceInfo* pInfo ); 59 nn::Result GetReadableLength( s32* pSize ); 60 nn::Result Read( void* pBuf, s32* pReadSize, s32 bufferSize ); 61 }; 62 63 } // end of namespace CTR 64 } // end of namespace midi 65 } // end of namespace nn 66 67 68 69 #endif // ifndef NN_MIDI_CTR_MIDI_MIDI_H_ 70