问题描述:

I'm working on a IOS game based on music, and a strict synchronize between background music and global timer is necessary, so I'm looking for some way to play music AND at the same time knowing which exact position the music is playing on at each frame update.

the OALSimpleAudio Doesn't have such kind of interface. Are there any better solution? Thank you!

网友答案:

OALSimpleAudio Background-Music (OALAudioTrack) uses the AVAudioPlayer.

Try:

[[[[OALSimpleAudio sharedInstance] backgroundTrack] player] currentTime]
相关阅读:
Top