如何将16位.wav音频文件读入适合写入Android AudioTrack的缓冲区?

时间:2021-12-29 19:45:02

Is there a replacement somewhere in the SDK for javax.sound.sampled.AudioFormat and associated stuff that allows you to open a .wav file and extract the PCM samples from it? Or do I really need to implement my own codec?

SDK中是否有替代javax.sound.sampled.AudioFormat和相关的东西,允许您打开.wav文件并从中提取PCM样本?或者我真的需要实现自己的编解码器吗?

1 个解决方案

#1


0  

You can try using OpelSL ES ( programming in native code ). You can do audio manipulation that you want and it is very recommended for audio processing.

您可以尝试使用OpelSL ES(在本机代码中编程)。您可以进行所需的音频操作,非常适合音频处理。

#1


0  

You can try using OpelSL ES ( programming in native code ). You can do audio manipulation that you want and it is very recommended for audio processing.

您可以尝试使用OpelSL ES(在本机代码中编程)。您可以进行所需的音频操作,非常适合音频处理。