public void PlayBGM()
{
bool startFlag = false;
CriAtomSource.Status status = atomSourceBgm.status;
if ((status == CriAtomSource.Status.Stop) || (status == CriAtomSource.Status.PlayEnd)) {
this.playbackBGM = atomSourceBgm.Play(100);
startFlag = true;
}
if(startFlag == false){
int cur = this.playbackBGM.GetCurrentBlockIndex();
CriAtomExAcb acb = CriAtom.GetAcb("PinballMain");
if(acb != null){
acb.GetCueInfo("BGM",out this.cueInfo);
cur++;
if(this.cueInfo.numBlocks > 0){
this.playbackBGM.SetNextBlockIndex(cur % this.cueInfo.numBlocks);
}
}
}
}