Cocos2dx引擎版本:3.17.2
路径:SimpleAudioEngin.mm
static void static_setBackgroundMusicCurrentTime(float currentTime)
{
[[SimpleAudioEngine sharedEngine] setBackgroundMusicCurrentTime:currentTime];
}
static float static_getBackgroundMusicCurrentTime()
{
return [[SimpleAudioEngine sharedEngine] getBackgroundMusicCurrentTime];
}
float SimpleAudioEngine::getBackgroundMusicCurrentTime()
{
return static_getBackgroundMusicCurrentTime();
}
void SimpleAudioEngine::setBackgroundMusicCurrentTime(float currentTime)
{
static_setBackgroundMusicCurrentTime(currentTime);
}
路径:SimpleAudioEngine_objc.m
-(void) setBackgroundMusicCurrentTime:(float) currentTime
{
[am setBackgroundMusicCurrentTime:currentTime]
}
-(float) getBackgroundMusicCurrentTime
{
return [am getBackgroundMusicCurrentTime];
}
路径:CDAudioManager.m
-(void) setBackgroundMusicCurrentTime:(float) currentTime
{
[self.backgroundMusic.audioSourcePlayer setCurrentTime:currentTime];
}
-(float) getBackgroundMusicCurrentTime
{
return self.backgroundMusic.audioSourcePlayer.currentTime;
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)