首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > 多媒体 >

mSample->SetTime(&rtStart, &rtEnd); 开始 结束时间是什么意思解决方案

2012-09-28 
mSample-SetTime(&rtStart, &rtEnd) 开始 结束时间是什么意思如题,请用自己的话说。最好举个例子[解决办

mSample->SetTime(&rtStart, &rtEnd); 开始 结束时间是什么意思
如题,请用自己的话说。最好举个例子

[解决办法]
就是这桢开始的流时间和结束的流时间,以便render去展现,一般来说结束的流时间,没什么作用,因为render会根据,你上面的公式去算.
 REFERENCE_TIME rtStart = mLastSampleTime;
mLastSampleTime += (UNITS * inSampleSize / mAudioBytesPerSecond);
REFERENCE_TIME rtEnd = mLastSampleTime;
mSample->SetTime(&rtStart, &rtEnd);

热点排行