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.
在我OpenAl用来修剪音频歌曲的应用程序中,现在如何转换alSourcePlay(source);为NSData?
OpenAl
alSourcePlay(source);
NSData
任何人都可以帮助我吗?
我们可以使用 ExtAudioFileWrite 将缓冲区数据写入 NSDocumentDirectory 然后我们将获得缓冲区的路径,我们可以使用该路径转换为 Nsdata
err = ExtAudioFileWrite(destinationFile, StartingFrameOffset, &theDataBuffer);