11.4、Libgdx的音频之录制PCM音效

(官网:www.libgdx.cn)

可以通过AudioRecorder接口访问PCM数据。通过如下方式创建一个接口实例:

AudioRecorder recorder = Gdx.audio.newAudioRecorder(22050, true);

如果不能创建设备,将会抛出一个GdxRuntimeException异常。

销毁设备通过如下方式:

recorder.dispose();

音效录制暂不支持JavaScript和WebGL。

www.libgdx.cn版权所有,如需转载,注明出处)

原文地址:https://www.cnblogs.com/hainange/p/6153484.html