Có thể biết khi nào AVAudioPlayer
sẵn sàng sau khi gọi đến prepareToPlay
?AVAudioPlayer PrepareToPlay gọi lại trong iPhone
Nếu không, có bất kỳ lớp nào khác cung cấp chức năng này không?
Tôi muốn thực hiện một cái gì đó như thế này:
- (void) prepare {
[audioPlayer prepareToPlay];
// Update UI to indicate that the audio is being prepared
}
- (void) onAudioReady {
// Update UI to indicate that the audio is ready
}