Lines Matching refs:snd

25 class CreateSoundThreadManuallyApp : public nw::snd::demolib::AppBase
39 nw::snd::RomSoundArchive m_Archive;
40 nw::snd::SoundArchivePlayer m_ArchivePlayer;
41 nw::snd::SoundDataManager m_DataManager;
42 nw::snd::SoundHeap m_Heap;
43 nw::snd::SoundHandle m_Handle;
64 void PanToMixParam( nn::snd::MixParam& mix, int pan ) in PanToMixParam()
69 mix.mainBus[nn::snd::CHANNEL_INDEX_FRONT_LEFT] = 1.0f - pan / 100.f; in PanToMixParam()
70 mix.mainBus[nn::snd::CHANNEL_INDEX_FRONT_RIGHT] = pan / 100.f; in PanToMixParam()
76 nn::snd::Voice* s_pVoice;
77 nn::snd::WaveBuffer s_WaveBuffer[2]; // ループ波形再生には 2 つの WaveBuffer が必要
78 nn::snd::Bcwav::DspAdpcmInfo* m_sDspAdpcmInfo; // TODO: SDK-0.10.0 では const にする
93 nn::snd::MixParam mix; in MySoundFrameProcess()
99 nn::snd::Voice::State state = in MySoundFrameProcess()
100 s_IsSdkVoicePause ? nn::snd::Voice::STATE_PAUSE : nn::snd::Voice::STATE_PLAY; in MySoundFrameProcess()
113 nn::snd::WaitForDspSync(); in SoundThreadFunc()
114 nw::snd::SoundSystem::SoundFrameProcess(); in SoundThreadFunc()
116 nn::snd::SendParameterToDsp(); in SoundThreadFunc()
144 nw::snd::SoundSystem::SoundSystemParam param; in InitializeSoundSystem()
146 size_t workMemSize = nw::snd::SoundSystem::GetRequiredMemSize( param ); in InitializeSoundSystem()
151 nw::snd::SoundSystem::SetMaxVoiceCount( 23 ); in InitializeSoundSystem()
152 nw::snd::SoundSystem::Initialize( in InitializeSoundSystem()
219 nn::snd::InitializeWaveBuffer( &s_WaveBuffer[i] ); in InitializeSdkVoice()
238 nn::snd::FlushDataCache( reinterpret_cast<uptr>(s_pMemoryForSdkVoice), readSize ); in InitializeSdkVoice()
243 const nn::snd::Bcwav::WaveInfo& info = nn::snd::Bcwav::GetWaveInfo( s_pMemoryForSdkVoice ); in InitializeSdkVoice()
244 const void* wave = nn::snd::Bcwav::GetWave( s_pMemoryForSdkVoice, 0 ); in InitializeSdkVoice()
248 m_sDspAdpcmInfo = const_cast<nn::snd::Bcwav::DspAdpcmInfo*>( in InitializeSdkVoice()
249 nn::snd::Bcwav::GetDspAdpcmInfo( s_pMemoryForSdkVoice, 0 ) ); in InitializeSdkVoice()
258 nw::snd::SoundSystem::SoundThreadScopedLock lock; in InitializeSdkVoice()
260 s_pVoice = nn::snd::AllocVoice( 128, NULL, NULL ); in InitializeSdkVoice()
268 s_pVoice->SetSampleFormat( static_cast<nn::snd::SampleFormat>( info.encoding ) ); in InitializeSdkVoice()
273 nn::snd::MixParam mix; in InitializeSdkVoice()
288 int offset = nn::snd::Bcwav::FrameToByte( info.encoding, info.loopStartFrame ); in InitializeSdkVoice()
289 s_WaveBuffer[1].bufferAddress = nn::snd::Bcwav::AddOffsetToPtr( wave, offset ); in InitializeSdkVoice()
298 s_pVoice->SetState( nn::snd::Voice::STATE_PLAY ); in InitializeSdkVoice()
314 nw::snd::SoundSystem::Finalize(); in OnFinalize()
394 nw::snd::SoundSystem::SoundThreadScopedLock(); in OnUpdatePad()
395 s_pVoice->SetState( nn::snd::Voice::STATE_STOP ); in OnUpdatePad()
401 nn::Result result = nn::snd::Finalize(); in OnUpdatePad()
414 result = nn::snd::Initialize(); in OnUpdatePad()