#define TIME_STRETCH_VOICEPOOL 0x02 : /* ボイスプールのコンフィグ設定 */ CriAtomExStandardVoicePoolConfig voice_pool_config; criAtomExVoicePool_SetDefaultConfigForStandardVoicePool(&voice_pool_config); voice_pool_config.identifier = TIME_STRETCH_VOICEPOOL; /* ボイスプールの作成 */ app_obj->voice_pool = criAtomExVoicePool_AllocateStandardVoicePool(&voice_pool_config, NULL, 0); /* タイムストレッチのコンフィグ設定 */ CriAtomExDspTimeStretchConfig time_stretch_config; criAtomExVoicePool_SetDefaultConfigForDspTimeStretch(&time_stretch_config); time_stretch_config.num_dsp = voice_pool_config.num_voices; time_stretch_config.max_channels = voice_pool_config.player_config.max_channels; time_stretch_config.max_sampling_rate = voice_pool_config.player_config.max_sampling_rate; /* タイムストレッチを追加 */ criAtomExVoicePool_AttachDspTimeStretch(&app_obj->voice_pool, &time_stretch_config, NULL, 0); : /* ボイスプール識別子をセット */ criAtomExPlayer_SetVoicePoolIdentifier(app_obj->player, TIME_STRETCH_VOICEPOOL); /* 時間を1.2倍に伸ばす(遅くする) */ criAtomExPlayer_SetDspParameter(app_obj->player, CRIATOMDSP_TIMESTRETCH_PARAM_RATIO, 1.2f); /* 再生開始 */ criAtomExPlayer_Start(app_obj->player);