AVAudioPlayer の currentTime メソッドが負の値を返すのはいつですか? オーディオ ファイルは再生中ですが (currentTime を取得する前にチェックを入れています)、currentTime を呼び出すと負の値が返されます。
何か案は?ありがとう
if(thePlayer != nil && [thePlayer isPlaying]){
double playerTime = [thePlayer currentTime];
NSLog(@"Player Time: %f", playerTime);
}
出力
Player Time: -0.019683