1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: snd.h 4 5 Copyright (C)2009-2012 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: 46365 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_SAMPLE_DEMOS_DEMO1_SND_H_ 17 #define NN_SAMPLE_DEMOS_DEMO1_SND_H_ 18 19 #include "device.h" 20 21 class SndDemo : public Device 22 { 23 public: Initialize(demo::RenderSystemDrawing * p_RenderSystem)24 virtual void Initialize(demo::RenderSystemDrawing* p_RenderSystem) { Device::Initialize(p_RenderSystem); } 25 void Initialize(demo::RenderSystemDrawing* p_RenderSystem, nn::fnd::ExpHeap* expHeap); 26 virtual void Finalize(void); 27 28 virtual void Start(void); 29 virtual void End(void); 30 31 virtual void DrawFrame(void); 32 33 void SoundThreadFuncImpl(void); 34 35 private: 36 nn::os::Thread m_SoundThread; 37 nn::fnd::ExpHeap* mp_AppHeap; 38 bool m_EndFlag; 39 NN_PADDING3; 40 }; 41 42 /* NN_SAMPLE_DEMOS_DEMO1_SND_H_ */ 43 #endif 44 45 /*---------------------------------------------------------------------------* 46 End of file 47 *---------------------------------------------------------------------------*/ 48