1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: snd_StreamTrack.cpp 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: $ 16 *---------------------------------------------------------------------------*/ 17 18 #include "precompiled.h" 19 20 #include <nw/snd/snd_StreamTrack.h> 21 22 namespace nw { 23 namespace snd { 24 namespace internal { 25 namespace driver { 26 27 #ifdef NW_PLATFORM_CTR 28 AppendWaveBuffer(nn::snd::WaveBuffer * pBuffer,bool lastFlag)29void StreamChannel::AppendWaveBuffer( nn::snd::WaveBuffer* pBuffer, bool lastFlag ) 30 { 31 NW_NULL_ASSERT( pBuffer ); 32 33 if ( m_pVoice != NULL ) 34 { 35 // バッファ追加は、nn::snd::Voice があればできる 36 m_pVoice->AppendWaveBuffer( 37 0, // channelIndex はつねに 0 番目 38 pBuffer, 39 lastFlag 40 ); 41 } 42 } 43 44 #endif // NW_PLATFORM_CTR 45 46 47 } // namespace nw::snd::internal::driver 48 } // namespace nw::snd::internal 49 } // namespace nw::snd 50 } // namespace nw 51 52