【发布时间】:2014-02-25 10:21:28
【问题描述】:
在这里,我曾经使用AVAudioPlayer Framework 播放歌曲。希望它正在播放,但如果我点击歌曲列表中的其他歌曲,我会检查情况:
if(player.isPlaying == YES)
{
[player stop];
// And also i need to release or remove the existing NSDATA from the Player. otherwise the player won't release the existing data. So the memory pressure occurring in my project.
}
self.audioPlayer = [self.audioPlayer initWithData:m_currentMusic.fileData error:&error];
[self.audioPlayer prepareToPlay];
[self.audioPlayer play];
【问题讨论】:
标签: ios objective-c memory-management avaudioplayer