/* ADX2ライブラリの初期化 */ /* CRI File System の初期化パラメータ */ CriFsConfig fs_config; criFs_SetDefaultConfig(&fs_config); fs_config.num_loaders = 32; /* ストリーミングボイスの最大数+1以上 */ /* CRI Atom の初期化パラメータ */ CriAtomExConfig_WASAPI atom_wasapi_config; criAtomEx_SetDefaultConfig_WASAPI(&atom_wasapi_config); atom_wasapi_config.atom_ex.fs_config = &fs_config; atom_wasapi_config.hca_mx.output_sampling_rate = 32000; /* HCA-MXのサンプリングレート */ criAtomEx_Initialize_WASAPI(&atom_wasapi_config, NULL, 0);
/* HCA-MX再生用のボイスプール作成 */ CriAtomExHcaMxVoicePoolConfig hcamx_config; criAtomExVoicePool_SetDefaultConfigForHcaMxVoicePool(&hcamx_config); hcamx_config.num_voices = 8; /* ボイスプールのリソース数 */ hcamx_config.player_config.streaming_flag = CRI_TRUE; /* ストリーム再生有効にしておく */ hcamx_config.player_config.max_sampling_rate = 32000; /* HCA-MXのサンプリングレート */ g_hcamx_voice_pool = criAtomExVoicePool_AllocateHcaMxVoicePool(&hcamx_config, NULL, 0);
E2008070931:Can not allocate loader handle. (Increase num_loaders of CriFsConfig.)