Lines Matching refs:snd

23 class CreateSoundThreadManuallyApp : public nw::snd::demolib::AppBase
37 nw::snd::RomSoundArchive m_Archive;
38 nw::snd::SoundArchivePlayer m_ArchivePlayer;
39 nw::snd::SoundDataManager m_DataManager;
40 nw::snd::SoundHeap m_Heap;
41 nw::snd::SoundHandle m_Handle;
62 void PanToMixParam( nn::snd::MixParam& mix, int pan ) in PanToMixParam()
67 mix.mainBus[nn::snd::CHANNEL_INDEX_FRONT_LEFT] = 1.0f - pan / 100.f; in PanToMixParam()
68 mix.mainBus[nn::snd::CHANNEL_INDEX_FRONT_RIGHT] = pan / 100.f; in PanToMixParam()
74 nn::snd::Voice* s_pVoice;
75 nn::snd::WaveBuffer s_WaveBuffer[2]; // ループ波形再生には 2 つの WaveBuffer が必要
76 nn::snd::Bcwav::DspAdpcmInfo* m_sDspAdpcmInfo; // TODO: SDK-0.10.0 では const にする
91 nn::snd::MixParam mix; in MySoundFrameProcess()
97 nn::snd::Voice::State state = in MySoundFrameProcess()
98 s_IsSdkVoicePause ? nn::snd::Voice::STATE_PAUSE : nn::snd::Voice::STATE_PLAY; in MySoundFrameProcess()
111 nn::snd::WaitForDspSync(); in SoundThreadFunc()
112 nw::snd::SoundSystem::SoundFrameProcess(); in SoundThreadFunc()
114 nn::snd::SendParameterToDsp(); in SoundThreadFunc()
142 nw::snd::SoundSystem::SoundSystemParam param; in InitializeSoundSystem()
144 size_t workMemSize = nw::snd::SoundSystem::GetRequiredMemSize( param ); in InitializeSoundSystem()
149 nw::snd::SoundSystem::SetMaxVoiceCount( 23 ); in InitializeSoundSystem()
150 nw::snd::SoundSystem::Initialize( in InitializeSoundSystem()
217 nn::snd::InitializeWaveBuffer( &s_WaveBuffer[i] ); in InitializeSdkVoice()
236 nn::snd::FlushDataCache( reinterpret_cast<uptr>(s_pMemoryForSdkVoice), readSize ); in InitializeSdkVoice()
241 const nn::snd::Bcwav::WaveInfo& info = nn::snd::Bcwav::GetWaveInfo( s_pMemoryForSdkVoice ); in InitializeSdkVoice()
242 const void* wave = nn::snd::Bcwav::GetWave( s_pMemoryForSdkVoice, 0 ); in InitializeSdkVoice()
246 m_sDspAdpcmInfo = const_cast<nn::snd::Bcwav::DspAdpcmInfo*>( in InitializeSdkVoice()
247 nn::snd::Bcwav::GetDspAdpcmInfo( s_pMemoryForSdkVoice, 0 ) ); in InitializeSdkVoice()
256 nw::snd::SoundSystem::SoundThreadScopedLock lock; in InitializeSdkVoice()
258 s_pVoice = nn::snd::AllocVoice( 128, NULL, NULL ); in InitializeSdkVoice()
266 s_pVoice->SetSampleFormat( static_cast<nn::snd::SampleFormat>( info.encoding ) ); in InitializeSdkVoice()
271 nn::snd::MixParam mix; in InitializeSdkVoice()
286 int offset = nn::snd::Bcwav::FrameToByte( info.encoding, info.loopStartFrame ); in InitializeSdkVoice()
287 s_WaveBuffer[1].bufferAddress = nn::snd::Bcwav::AddOffsetToPtr( wave, offset ); in InitializeSdkVoice()
296 s_pVoice->SetState( nn::snd::Voice::STATE_PLAY ); in InitializeSdkVoice()
312 nw::snd::SoundSystem::Finalize(); in OnFinalize()
392 nw::snd::SoundSystem::SoundThreadScopedLock(); in OnUpdatePad()
393 s_pVoice->SetState( nn::snd::Voice::STATE_STOP ); in OnUpdatePad()
399 nn::Result result = nn::snd::Finalize(); in OnUpdatePad()
412 result = nn::snd::Initialize(); in OnUpdatePad()