Example #1
0
        public AITalkResultCode Init(AITalk_TConfig config)
        {
            AITalkResultCode code = AITalkAPI.Init(ref config);

            this.OnWriteLog("[AITalkAPI_Init] " + code);
            if (code == AITalkResultCode.AITALKERR_SUCCESS)
            {
                this._disposed = false;
            }
            this._voiceSamplesPerSec = config.hzVoiceDB;
            this._kanaBuf            = new StringBuilder(0x4000);
            this._waveBuf            = new short[config.hzVoiceDB * 4];
            return(code);
        }