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