CriAtomExDbasId dbas_id; CriAtomExStandardVoicePoolConfig voice_pool_config; CriAtomExPlayerConfig player_config; CriAtomExVoicePoolHn voice_pool; CriAtomExPlayerHn player; /* D-BASの作成 */ dbas_id = criAtomDbas_Create(NULL, NULL, 0); /* ボイスプールの作成パラメーターをデフォルト値で初期化 */ criAtomExVoicePool_SetDefaultConfigForStandardVoicePool(&voice_pool_config); /* ファイル名指定の再生はストリーミング再生なので、ストリーミング再生可能に設定 */ voice_pool_config.player_config.streaming_flag = CRI_TRUE; /* ストリーミング再生可能なボイスプールの作成 */ voice_pool = criAtomExVoicePool_AllocateStandardVoicePool(&voice_pool_config, NULL, 0); /* プレーヤーの作成パラメーターをデフォルト値で初期化 */ criAtomExPlayer_SetDefaultConfig(&player_config); /* 再生するファイル名を覚えておくためのパス保存領域サイズを指定 */ player_config.max_path_strings = 1; player_config.max_path = SMP_PATH_LENGTH; /* プレーヤーの作成 */ player = criAtomExPlayer_Create(&player_config, NULL, 0); /* 再生ファイルの指定 */ criAtomExPlayer_SetFile(player, NULL, PATH FILE); /* 再生の開始 */ criAtomExPlayer_Start(player);
指定するパラメーター | 使用する関数 |
---|---|
フォーマット | criAtomExPlayer_SetFormat |
チャンネル数 | criAtomExPlayer_SetNumChannels |
サンプリングレート | criAtomExPlayer_SetSamplingRate |