Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何从与 AVAudioPlayer 实例关联的文件中获取属性。具体来说,我正在寻找如何确定 WAV 文件的长度。
如果你想要以秒为单位的长度,audioPlayer.duration应该这样做。
audioPlayer.duration